From 1c8d832e528b618a9b01024c72a1263e119ff94a Mon Sep 17 00:00:00 2001 From: Robotia Date: Mon, 1 Feb 2016 09:09:36 -0500 Subject: [PATCH] A real hashcode()... (https://gitlab.prok.pw/KCauldron/KCauldron/commit/12b0a52ae035ba89e922743d6f70fbdc72d230cb) --- patches/net/minecraft/world/NextTickListEntry.java.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/net/minecraft/world/NextTickListEntry.java.patch b/patches/net/minecraft/world/NextTickListEntry.java.patch index e2cb5a4..faf0fb6 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_)