diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/simulator/SimulatorPreviewStorage.java b/BauSystem_Main/src/de/steamwar/bausystem/features/simulator/SimulatorPreviewStorage.java index 79732249..f37cc938 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/simulator/SimulatorPreviewStorage.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/simulator/SimulatorPreviewStorage.java @@ -79,7 +79,7 @@ public class SimulatorPreviewStorage { public void recalculate(TNTSimulator tntSimulator) { Pair> pair = previews.get(tntSimulator); - if (previews == null) return; + if (pair == null) return; pair.setKey(SimulatorPreview.impl.simulate(tntSimulator)); pair.getValue().forEach(player -> { Pair> setPair = showModes.get(player);