Fix issue with 0,0 chunks causing crash

This commit is contained in:
Aikar 2020-04-09 23:02:05 -04:00
parent 0db7fba2d3
commit 13e8f5eb83

View file

@ -46,7 +46,7 @@ index 69e26a8267..434833d50e 100644
public static final Timing connectionTimer = Timings.ofSafe("Connection Handler");
diff --git a/src/main/java/com/destroystokyo/paper/util/map/Long2ObjectLinkedOpenHashMapFastCopy.java b/src/main/java/com/destroystokyo/paper/util/map/Long2ObjectLinkedOpenHashMapFastCopy.java
new file mode 100644
index 0000000000..99e2041bd9
index 0000000000..e0ad725b2e
--- /dev/null
+++ b/src/main/java/com/destroystokyo/paper/util/map/Long2ObjectLinkedOpenHashMapFastCopy.java
@@ -0,0 +0,0 @@
@ -79,9 +79,7 @@ index 0000000000..99e2041bd9
+ this.last = map.last;
+ this.n = map.n;
+ this.maxFill = map.maxFill;
+ if (map.containsKey(null)) {
+ this.put(null, map.get(null));
+ }
+ this.containsNullKey = map.containsNullKey;
+ }
+}
diff --git a/src/main/java/net/minecraft/server/ChunkProviderServer.java b/src/main/java/net/minecraft/server/ChunkProviderServer.java