Add check to TorquePropagator, fixing #3103

This commit is contained in:
PiTheGuy 2022-06-17 18:12:03 -05:00
parent 97da6be27f
commit 42f961442e

View file

@ -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<Long, KineticNetwork> map = networks.get(te.getLevel());
if (id == null)
return null;