From 25a9a9ff62c57b247640227526c26a0cd1db69ff Mon Sep 17 00:00:00 2001 From: md_5 Date: Sun, 23 Feb 2020 10:29:46 +1100 Subject: [PATCH] SPIGOT-5592: Custom ChunkGenerator can cause bugged dirt --- .../java/org/bukkit/craftbukkit/generator/CraftChunkData.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/bukkit/craftbukkit/generator/CraftChunkData.java b/src/main/java/org/bukkit/craftbukkit/generator/CraftChunkData.java index 7772d59005..8191e7c348 100644 --- a/src/main/java/org/bukkit/craftbukkit/generator/CraftChunkData.java +++ b/src/main/java/org/bukkit/craftbukkit/generator/CraftChunkData.java @@ -157,7 +157,7 @@ public final class CraftChunkData implements ChunkGenerator.ChunkData { private ChunkSection getChunkSection(int y, boolean create) { ChunkSection section = sections[y >> 4]; if (create && section == null) { - sections[y >> 4] = section = new ChunkSection(y); + sections[y >> 4] = section = new ChunkSection(y >> 4 << 4); } return section; }