From 3c9a4a3ba6dfe76cfa81bacf6eaa8b5784b60a87 Mon Sep 17 00:00:00 2001 From: md_5 Date: Wed, 22 Jan 2020 08:54:12 +1100 Subject: [PATCH] SPIGOT-5529: BiomeGrid uses incorrect indexing --- .../craftbukkit/generator/CustomChunkGenerator.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/bukkit/craftbukkit/generator/CustomChunkGenerator.java b/src/main/java/org/bukkit/craftbukkit/generator/CustomChunkGenerator.java index 1e0cba4cef..cda41d0678 100644 --- a/src/main/java/org/bukkit/craftbukkit/generator/CustomChunkGenerator.java +++ b/src/main/java/org/bukkit/craftbukkit/generator/CustomChunkGenerator.java @@ -47,7 +47,7 @@ public class CustomChunkGenerator extends InternalChunkGenerator> 2, y >> 2, z >> 2)); } @Override public void setBiome(int x, int y, int z, Biome bio) { - biome.setBiome(x, y, z, CraftBlock.biomeToBiomeBase(bio)); + biome.setBiome(x >> 2, y >> 2, z >> 2, CraftBlock.biomeToBiomeBase(bio)); } }