diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/testblock/depthcounter/DepthCounterListener.java b/BauSystem_Main/src/de/steamwar/bausystem/features/testblock/depthcounter/DepthCounterListener.java index 43e52d70..24dc48ad 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/testblock/depthcounter/DepthCounterListener.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/testblock/depthcounter/DepthCounterListener.java @@ -42,7 +42,7 @@ public class DepthCounterListener implements Listener { return; } - DepthCounter.depthMap.computeIfAbsent(region, r -> new HashSet<>()); + DepthCounter.depthMap.putIfAbsent(region, new HashSet<>()); Set depthSet = DepthCounter.depthMap.get(region); for (Depth depth : depthSet) { if (depth.update(event.blockList())) {