From 14924858f0c8d561642eb13020f3d4024f089501 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Tue, 31 Dec 2019 16:28:06 +0100 Subject: [PATCH] Fixing Tracer remove --- .../src/de/steamwar/bausystem/world/TNTTracer_15.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/BauSystem_15/src/de/steamwar/bausystem/world/TNTTracer_15.java b/BauSystem_15/src/de/steamwar/bausystem/world/TNTTracer_15.java index 8d21e7d..306342b 100644 --- a/BauSystem_15/src/de/steamwar/bausystem/world/TNTTracer_15.java +++ b/BauSystem_15/src/de/steamwar/bausystem/world/TNTTracer_15.java @@ -14,7 +14,7 @@ class TNTTracer_15 { static void remove(Map> 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 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();