From 42f961442e2bc860279e9b3b4a943baf3115677a Mon Sep 17 00:00:00 2001 From: PiTheGuy Date: Fri, 17 Jun 2022 18:12:03 -0500 Subject: [PATCH] Add check to TorquePropagator, fixing #3103 --- .../simibubi/create/content/contraptions/TorquePropagator.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/simibubi/create/content/contraptions/TorquePropagator.java b/src/main/java/com/simibubi/create/content/contraptions/TorquePropagator.java index ecaac86c3..a6bf425d5 100644 --- a/src/main/java/com/simibubi/create/content/contraptions/TorquePropagator.java +++ b/src/main/java/com/simibubi/create/content/contraptions/TorquePropagator.java @@ -26,6 +26,8 @@ public class TorquePropagator { public KineticNetwork getOrCreateNetworkFor(KineticTileEntity te) { Long id = te.network; KineticNetwork network; + if (!networks.containsKey(te.getLevel())) + networks.put(te.getLevel(), new HashMap<>()); Map map = networks.get(te.getLevel()); if (id == null) return null;