mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-27 23:33:08 +00:00
More work on Digital Miner filter system, also fixed a little memory leak
This commit is contained in:
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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user