Fixed lava crystal working even if there is no LP available. Causes a desync on server worlds.
This commit is contained in:
parent
18a36b9778
commit
8ec653b2a7
3 changed files with 13 additions and 4 deletions
|
@ -32,6 +32,11 @@ public class NetworkHelper
|
|||
public static SoulNetwork getSoulNetwork(String name)
|
||||
{
|
||||
World world = DimensionManager.getWorld(0);
|
||||
if (world == null || world.getMapStorage() == null) //Hack-ish way to fix the lava crystal.
|
||||
{
|
||||
return new SoulNetwork(name);
|
||||
}
|
||||
|
||||
SoulNetwork network = (SoulNetwork) world.getMapStorage().loadData(SoulNetwork.class, name);
|
||||
|
||||
if (network == null)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue