Browse Source

A real hashcode()... (12b0a52ae0)

master
Robotia 9 years ago
parent
commit
1c8d832e52
  1. 2
      patches/net/minecraft/world/NextTickListEntry.java.patch

2
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_)

Loading…
Cancel
Save