diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/testblock/depthcounter/Depth.java b/BauSystem_Main/src/de/steamwar/bausystem/features/testblock/depthcounter/Depth.java index af7ed51e..1c6e1514 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/testblock/depthcounter/Depth.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/testblock/depthcounter/Depth.java @@ -99,7 +99,7 @@ public class Depth { } public boolean update(List blocks) { - long totalBlastResistanceBroken = blocks.stream().filter(block -> { + double totalBlastResistanceBroken = blocks.stream().filter(block -> { Vector vector = DepthCounter.blockVector(block.getLocation().toVector()); return vector.getX() >= minVector.getX() && vector.getY() >= minVector.getY() @@ -108,9 +108,9 @@ public class Depth { && vector.getY() <= maxVector.getY() && vector.getZ() <= maxVector.getZ(); }).filter(block -> block.getType().isBlock()) - .mapToLong(block -> (long) (block.getType().getBlastResistance() * 100)) + .mapToDouble(block -> block.getType().getBlastResistance()) .sum(); - if (totalBlastResistanceBroken < 1800) { + if (totalBlastResistanceBroken < 18) { return false; } lastUpdate = TPSUtils.currentTick.get();