Merge pull request #5 from OvermindDL1/patch-1

Update dimHelper.java
This commit is contained in:
StevenRS11 2013-06-06 20:00:24 -07:00
commit 40551fe013

View file

@ -1047,15 +1047,18 @@ public class dimHelper extends DimensionManager
//TODO change from saving serialized objects to just saving data for compatabilies sake. //TODO change from saving serialized objects to just saving data for compatabilies sake.
public void save() 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"); //System.out.println("saving");
this.isSaving=true; this.isSaving=true;
HashMap comboSave=new HashMap(); HashMap comboSave=new HashMap();
comboSave.put("dimList", this.dimList); comboSave.put("dimList", this.dimList);
comboSave.put("interDimLinkList", this.interDimLinkList); comboSave.put("interDimLinkList", this.interDimLinkList);
comboSave.put("blocksToDecay", this.blocksToDecay); comboSave.put("blocksToDecay", this.blocksToDecay);