From cef509a9cea47c6763179c168264a958416f3507 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Mon, 24 May 2021 16:18:15 +0200 Subject: [PATCH] Update DepthCounterListener to count extension area as well Signed-off-by: yoyosource --- .../features/testblock/depthcounter/DepthCounterListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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())) {