mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-26 06:57:51 +01:00
Add check to TorquePropagator, fixing #3103
This commit is contained in:
parent
97da6be27f
commit
42f961442e
1 changed files with 2 additions and 0 deletions
|
@ -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 a new issue