Update dimHelper.java

Fixed crash bug and fixed surrounding indention.
Completely untested, but should work.
This commit is contained in:
OvermindDL1
2013-06-06 21:22:23 -05:00
parent 4858a69be5
commit e7a5c5b53c

View File

@@ -1047,7 +1047,10 @@ public class dimHelper extends DimensionManager
//TODO change from saving serialized objects to just saving data for compatabilies sake.
public void save()
{
if(!this.isSaving&&!DimensionManager.getWorld(0).isRemote&&this.getCurrentSaveRootDirectory()!=null)
if(this.isSaving) return;
World world = DimensionManager.getWorld(0);
if(world==null || world.isRemote) return;
if(this.getCurrentSaveRootDirectory()!=null)
{
//System.out.println("saving");