2013-01-17 22:27:26 +00:00
|
|
|
From 128c754afb0f2f6534928b2f5e5aca2b5a8f08d4 Mon Sep 17 00:00:00 2001
|
2013-01-15 01:18:40 +00:00
|
|
|
From: md_5 <md_5@bigpond.com>
|
|
|
|
Date: Mon, 7 Jan 2013 09:57:30 +1100
|
2013-01-16 00:32:20 +00:00
|
|
|
Subject: [PATCH 07/15] Return LOHS to full operation.
|
2013-01-15 01:18:40 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
src/main/java/org/bukkit/craftbukkit/util/LongHashSet.java | 4 ++--
|
|
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/craftbukkit/util/LongHashSet.java b/src/main/java/org/bukkit/craftbukkit/util/LongHashSet.java
|
|
|
|
index 3f1617d..a1250d3 100644
|
|
|
|
--- a/src/main/java/org/bukkit/craftbukkit/util/LongHashSet.java
|
|
|
|
+++ b/src/main/java/org/bukkit/craftbukkit/util/LongHashSet.java
|
|
|
|
@@ -81,11 +81,11 @@ public class LongHashSet {
|
|
|
|
}
|
|
|
|
|
|
|
|
public boolean add(int msw, int lsw) {
|
|
|
|
- flat.put(msw, lsw, PRESENT); // Spigot
|
|
|
|
return add(LongHash.toLong(msw, lsw));
|
|
|
|
}
|
|
|
|
|
|
|
|
- private boolean add(long value) { // Spigot
|
|
|
|
+ public boolean add(long value) {
|
|
|
|
+ flat.put(value, PRESENT); // Spigot
|
|
|
|
int hash = hash(value);
|
|
|
|
int index = (hash & 0x7FFFFFFF) % values.length;
|
|
|
|
int offset = 1;
|
|
|
|
--
|
|
|
|
1.8.1-rc2
|
|
|
|
|