More work on Digital Miner filter system, also fixed a little memory leak

This commit is contained in:
Aidan C. Brady committed 2014-07-20 15:27:35 -04:00
1 parent 13afad3b0d
commit ddc499c9fe
7 files changed
+64 -1

No files matched your search

@@ -221,6 +221,7 @@ public class Mekanism
/** A list of the usernames of players who have donated to Mekanism. */
public static List<String> donators = new ArrayList<String>();
/** The server's world tick handler. */
public static CommonWorldTickHandler worldTickHandler = new CommonWorldTickHandler();
/** The Mekanism world generation handler. */
@@ -1543,6 +1544,18 @@ public class Mekanism
}
}
@SubscribeEvent
public void chunkSave(ChunkDataEvent.Save event)
{
if(!event.world.isRemote)
{
NBTTagCompound nbtTags = event.getData();
nbtTags.setInteger("MekanismWorldGen", baseWorldGenVersion);
nbtTags.setInteger("MekanismUserWorldGen", userWorldGenVersion);
}
}
@SubscribeEvent
public synchronized void onChunkDataLoad(ChunkDataEvent.Load event)
{