diff --git a/patches/net/minecraft/world/NextTickListEntry.java.patch b/patches/net/minecraft/world/NextTickListEntry.java.patch index dac8adc..4345393 100644 --- a/patches/net/minecraft/world/NextTickListEntry.java.patch +++ b/patches/net/minecraft/world/NextTickListEntry.java.patch @@ -5,7 +5,7 @@ public int hashCode() { - return (this.xCoord * 1024 * 1024 + this.zCoord * 1024 + this.yCoord) * 256; -+ return (int) (tickEntryID & 0xFFFFFFFF); ++ return ((yCoord * 31 + xCoord) * 31 + zCoord) * 17 + yCoord; } public NextTickListEntry setScheduledTime(long p_77176_1_) diff --git a/patches/net/minecraft/world/gen/ChunkProviderServer.java.patch b/patches/net/minecraft/world/gen/ChunkProviderServer.java.patch index b482d0d..2ef541c 100644 --- a/patches/net/minecraft/world/gen/ChunkProviderServer.java.patch +++ b/patches/net/minecraft/world/gen/ChunkProviderServer.java.patch @@ -67,7 +67,7 @@ - public List loadedChunks = new ArrayList(); + public boolean loadChunkOnProvideRequest = MinecraftServer.getServer().cauldronConfig.loadChunkOnRequest.getValue(); // Cauldron - if true, allows mods to force load chunks. to disable, set load-chunk-on-request in cauldron.yml to false + public int initialTick; // Cauldron counter to keep track of when this loader was created -+ public TLongObjectMap loadedChunkHashMap_KC = new TSynchronizedLongObjectMap(new TLongObjectHashMap()); ++ public TLongObjectMap loadedChunkHashMap_KC = new TLongObjectHashMap(); + public List loadedChunks = new ArrayList(); // Cauldron - vanilla compatibility public WorldServer worldObj; private Set loadingChunks = com.google.common.collect.Sets.newHashSet();