diff --git a/BauSystem_12/src/de/steamwar/bausystem/tracer/TNTTracer_12.java b/BauSystem_12/src/de/steamwar/bausystem/tracer/TNTTracer_12.java index 49730dd..89b8080 100644 --- a/BauSystem_12/src/de/steamwar/bausystem/tracer/TNTTracer_12.java +++ b/BauSystem_12/src/de/steamwar/bausystem/tracer/TNTTracer_12.java @@ -21,6 +21,7 @@ package de.steamwar.bausystem.tracer; import org.bukkit.Material; import org.bukkit.World; +import org.bukkit.block.Block; import org.bukkit.entity.Player; import org.bukkit.util.Vector; @@ -31,7 +32,7 @@ public class TNTTracer_12 { } public static boolean inWater(World world, Vector tntPosition) { - Material material = tntPosition.toLocation(world).getBlock().getType(); + Material material = world.getBlockAt(tntPosition.getBlockX(), tntPosition.getBlockY(), tntPosition.getBlockZ()).getType(); return material == Material.WATER || material == Material.STATIONARY_WATER; } diff --git a/BauSystem_15/src/de/steamwar/bausystem/tracer/TNTTracer_15.java b/BauSystem_15/src/de/steamwar/bausystem/tracer/TNTTracer_15.java index b6f0419..bd0b25e 100644 --- a/BauSystem_15/src/de/steamwar/bausystem/tracer/TNTTracer_15.java +++ b/BauSystem_15/src/de/steamwar/bausystem/tracer/TNTTracer_15.java @@ -34,7 +34,7 @@ public class TNTTracer_15 { } public static boolean inWater(World world, Vector tntPosition) { - Block block = tntPosition.toLocation(world).getBlock(); + Block block = world.getBlockAt(tntPosition.getBlockX(), tntPosition.getBlockY(), tntPosition.getBlockZ()); if(block.getType() == Material.WATER) return true;