mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-11-14 06:24:29 +01:00
Add check to TorquePropagator, fixing #3103
This commit is contained in:
parent
97da6be27f
commit
42f961442e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user