2018-09-29 01:31:59 +02:00
|
|
|
From d220b6642224cbc4b6f2d901112592930e489b17 Mon Sep 17 00:00:00 2001
|
2018-08-29 04:12:27 +02:00
|
|
|
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
|
2018-09-29 01:31:59 +02:00
|
|
|
index 82d8aca47f..84df69a00d 100644
|
2018-08-29 04:12:27 +02:00
|
|
|
--- 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();
|
|
|
|
--
|
2018-09-27 04:35:42 +02:00
|
|
|
2.19.0
|
2018-08-29 04:12:27 +02:00
|
|
|
|