mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-30 16:19:03 +01:00
Fix issue with 0,0 chunks causing crash
This commit is contained in:
parent
0db7fba2d3
commit
13e8f5eb83
1 changed files with 2 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue