Fixing Tracer remove
Dieser Commit ist enthalten in:
Ursprung
307f9f79e7
Commit
14924858f0
@ -14,7 +14,7 @@ class TNTTracer_15 {
|
||||
|
||||
static void remove(Map<TNTPrimed, LinkedList<Location>> locations, TNTPrimed tnt){
|
||||
Material material = tnt.getLocation().getBlock().getType();
|
||||
if(material == Material.RED_STAINED_GLASS)
|
||||
if(material == Material.WATER)
|
||||
locations.remove(tnt);
|
||||
}
|
||||
|
||||
@ -22,8 +22,10 @@ class TNTTracer_15 {
|
||||
|
||||
for(LinkedList<Location> tntTrace : locations.values()){
|
||||
for(Location location : tntTrace){
|
||||
if(location.getBlock().getType() == Material.AIR)
|
||||
if(location.getBlock().getType() == Material.AIR){
|
||||
location.getBlock().setType(Material.RED_STAINED_GLASS);
|
||||
printedLocs.add(location);
|
||||
}
|
||||
}
|
||||
}
|
||||
locations.clear();
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren