mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-11-18 16:02:19 +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) {
|
public KineticNetwork getOrCreateNetworkFor(KineticTileEntity te) {
|
||||||
Long id = te.network;
|
Long id = te.network;
|
||||||
KineticNetwork network;
|
KineticNetwork network;
|
||||||
|
if (!networks.containsKey(te.getLevel()))
|
||||||
|
networks.put(te.getLevel(), new HashMap<>());
|
||||||
Map<Long, KineticNetwork> map = networks.get(te.getLevel());
|
Map<Long, KineticNetwork> map = networks.get(te.getLevel());
|
||||||
if (id == null)
|
if (id == null)
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Reference in a new issue