Fixed lava crystal working even if there is no LP available. Causes a desync on server worlds.

This commit is contained in:
WayofTime 2016-02-15 08:11:18 -05:00
parent 18a36b9778
commit 8ec653b2a7
3 changed files with 13 additions and 4 deletions

View file

@ -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)