13
0
geforkt von Mirrors/Paper
Paper/Spigot-Server-Patches/0347-Use-an-EnumMap-for-Chunk-Height-Maps.patch
Aikar b62dfa0bf9
Updated Upstream (Bukkit/CraftBukkit)
Upstream has released updates that appears to apply and compile correctly.
This update has not been tested by PaperMC and as with ANY update, please do your own testing

Bukkit Changes:
39ce5d3a SPIGOT-4399: ItemMeta.equals broken with AttributeModifiers

CraftBukkit Changes:
1cf8b5dc SPIGOT-4400: Populators running on existing chunks
116cb9a1 SPIGOT-4399: Add attribute modifier equality test
5ee1c18a SPIGOT-4398: Set ASM7_EXPERIMENTAL flag
2018-09-28 19:31:59 -04:00

23 Zeilen
902 B
Diff

From d220b6642224cbc4b6f2d901112592930e489b17 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 82d8aca47f..84df69a00d 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.19.0