Archiviert
13
0
Dieses Repository wurde am 2024-12-25 archiviert. Du kannst Dateien ansehen und es klonen, aber nicht pushen oder Issues/Pull-Requests öffnen.
Paper-Old/Spigot-Server-Patches/0352-Use-an-EnumMap-for-Chunk-Height-Maps.patch
Aikar d37d04a52f
[CI-SKIP] [Auto] Rebuild Patches
A recent commit has been made that caused patches to be out of order, rebuilding
2018-09-03 12:31:32 -04:00

23 Zeilen
902 B
Diff

From 98da4abc6afd89a1c6188ba96bb6a61f830b691b Mon Sep 17 00:00:00 2001
From: Aikar <aikar@aikar.co>
Date: Tue, 28 Aug 2018 22:11:13 -0400
Subject: [PATCH] Use an EnumMap for Chunk Height Maps
diff --git a/src/main/java/net/minecraft/server/Chunk.java b/src/main/java/net/minecraft/server/Chunk.java
index ed6d0dce33..1d301dcb70 100644
--- a/src/main/java/net/minecraft/server/Chunk.java
+++ b/src/main/java/net/minecraft/server/Chunk.java
@@ -133,7 +133,7 @@ public class Chunk implements IChunkAccess {
this.sections = new ChunkSection[16];
this.g = new boolean[256];
this.h = Maps.newHashMap();
- this.heightMap = Maps.newHashMap();
+ this.heightMap = new java.util.EnumMap<>(HeightMap.Type.class); // PAper
this.tileEntities = new TileEntityHashMap(); // Paper
this.p = Maps.newHashMap();
this.q = Maps.newHashMap();
--
2.18.0