mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-14 23:53:42 +01:00
Merge pull request #3126 from PiTheGuy/crash-fix-3103
Add check to TorquePropagator, fixing #3103
This commit is contained in:
commit
774345192b
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