Improve lsw too

This commit is contained in:
md_5 2014-06-09 19:04:53 +10:00
parent a9bcec2567
commit 8d19f7fc9c

View File

@ -22,7 +22,7 @@ index 691cafd..7a5801f 100644
public static int lsw(long l) { public static int lsw(long l) {
- return (int) (l & 0xFFFFFFFF) + Integer.MIN_VALUE; - return (int) (l & 0xFFFFFFFF) + Integer.MIN_VALUE;
+ return (int) (l & 0xFFFFFFFF); // Spigot + return (int) l; // Spigot
} }
} }
diff --git a/src/main/java/org/bukkit/craftbukkit/util/LongHashSet.java b/src/main/java/org/bukkit/craftbukkit/util/LongHashSet.java diff --git a/src/main/java/org/bukkit/craftbukkit/util/LongHashSet.java b/src/main/java/org/bukkit/craftbukkit/util/LongHashSet.java