mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-25 08:38:45 +01:00
2365b308c8
Upstream has released updates that appears to apply and compile correctly. This update has been tested to ensure that World Conversion still occurs correctly. Bukkit Changes: 0812ce2c SPIGOT-4397: isChunkGenerated API CraftBukkit Changes:4824655c
SPIGOT-4398: Upgrade to ASM 6.2.1 for better Java 11 supporteea43870
MC-134115: Fix issues converting tile entities1a7f2d10
SPIGOT-4397: isChunkGenerated API40aed54d
SPIGOT-4396: Improve vehicle movement Spigot Changes: f6a273b1 Rebuild patches
22 lines
902 B
Diff
22 lines
902 B
Diff
From 8185aa6e6a07b058ebccba63a1ff495dd5561346 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 e90ce79a97..c168714411 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
|
|
|