From a5277c151e65a3a5fe36470fcd62435dd3a1cc3d Mon Sep 17 00:00:00 2001 From: Sergey Date: Sun, 31 Jan 2016 18:39:40 +0700 Subject: [PATCH] Fix collision of NextTickListEntry (close #289) --- .../minecraft/network/NetHandlerPlayServer.java.patch | 2 +- .../net/minecraft/world/NextTickListEntry.java.patch | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 patches/net/minecraft/world/NextTickListEntry.java.patch diff --git a/patches/net/minecraft/network/NetHandlerPlayServer.java.patch b/patches/net/minecraft/network/NetHandlerPlayServer.java.patch index 8c696cd..203d58d 100644 --- a/patches/net/minecraft/network/NetHandlerPlayServer.java.patch +++ b/patches/net/minecraft/network/NetHandlerPlayServer.java.patch @@ -1818,7 +1818,7 @@ finally { @@ -1135,19 +2442,18 @@ - + { if (itemstack.getItem() == Items.written_book && itemstack1.getItem() == Items.writable_book) { - itemstack1.setTagInfo("author", new NBTTagString(this.playerEntity.getCommandSenderName())); diff --git a/patches/net/minecraft/world/NextTickListEntry.java.patch b/patches/net/minecraft/world/NextTickListEntry.java.patch new file mode 100644 index 0000000..dac8adc --- /dev/null +++ b/patches/net/minecraft/world/NextTickListEntry.java.patch @@ -0,0 +1,11 @@ +--- ../src-base/minecraft/net/minecraft/world/NextTickListEntry.java ++++ ../src-work/minecraft/net/minecraft/world/NextTickListEntry.java +@@ -38,7 +38,7 @@ + + public int hashCode() + { +- return (this.xCoord * 1024 * 1024 + this.zCoord * 1024 + this.yCoord) * 256; ++ return (int) (tickEntryID & 0xFFFFFFFF); + } + + public NextTickListEntry setScheduledTime(long p_77176_1_)