mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-30 16:19:03 +01:00
bdd77afa95
improved the water code so that immunity wont trigger if the entity has the water pathfinder system active, so this improves support for all entities that know how to behave in water. Merged 2 EAR patches together, and removed an MCUtil method that doesnt have a purpose anymore
20 lines
No EOL
888 B
Diff
20 lines
No EOL
888 B
Diff
From 0000000000000000000000000000000000000000 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 f4b26bd999..c68cef1677 100644
|
|
--- a/src/main/java/net/minecraft/server/Chunk.java
|
|
+++ b/src/main/java/net/minecraft/server/Chunk.java
|
|
@@ -0,0 +0,0 @@ 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();
|
|
--
|