SteamWar/BauSystem
Archiviert
13
0

Fixing Tracer remove

Dieser Commit ist enthalten in:
Lixfel 2019-12-31 16:28:06 +01:00
Ursprung 307f9f79e7
Commit 14924858f0

Datei anzeigen

@ -14,7 +14,7 @@ class TNTTracer_15 {
static void remove(Map<TNTPrimed, LinkedList<Location>> locations, TNTPrimed tnt){ static void remove(Map<TNTPrimed, LinkedList<Location>> locations, TNTPrimed tnt){
Material material = tnt.getLocation().getBlock().getType(); Material material = tnt.getLocation().getBlock().getType();
if(material == Material.RED_STAINED_GLASS) if(material == Material.WATER)
locations.remove(tnt); locations.remove(tnt);
} }
@ -22,8 +22,10 @@ class TNTTracer_15 {
for(LinkedList<Location> tntTrace : locations.values()){ for(LinkedList<Location> tntTrace : locations.values()){
for(Location location : tntTrace){ for(Location location : tntTrace){
if(location.getBlock().getType() == Material.AIR) if(location.getBlock().getType() == Material.AIR){
location.getBlock().setType(Material.RED_STAINED_GLASS); location.getBlock().setType(Material.RED_STAINED_GLASS);
printedLocs.add(location);
}
} }
} }
locations.clear(); locations.clear();