From ef7e516d1ca62a972097fb0dbfa818b149278d4f Mon Sep 17 00:00:00 2001 From: yoyosource Date: Fri, 24 Jun 2022 20:19:47 +0200 Subject: [PATCH] Fix SimulatorStorage Signed-off-by: yoyosource --- .../steamwar/bausystem/features/simulator/SimulatorStorage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/simulator/SimulatorStorage.java b/BauSystem_Main/src/de/steamwar/bausystem/features/simulator/SimulatorStorage.java index 873af36e..8e0a7847 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/simulator/SimulatorStorage.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/simulator/SimulatorStorage.java @@ -101,7 +101,7 @@ public class SimulatorStorage implements Enable, Disable { public static void delete(String name) { TNTSimulator tntSimulator = tntSimulators.remove(name); if (tntSimulator != null) { - tntSimulator.getPlayerShowMode().forEach((player, simulatorEntityShowMode) -> { + new HashMap<>(tntSimulator.getPlayerShowMode()).forEach((player, simulatorEntityShowMode) -> { SimulatorCursor.hide(player, tntSimulator); }); tntSimulator.hide();