13
0
geforkt von Mirrors/Paper

SPIGOT-5592: Custom ChunkGenerator can cause bugged dirt

By: md_5 <git@md-5.net>
Dieser Commit ist enthalten in:
CraftBukkit/Spigot 2020-02-23 10:29:46 +11:00
Ursprung 7d47bd7c7f
Commit aac54fb8a7

Datei anzeigen

@ -157,7 +157,7 @@ public final class CraftChunkData implements ChunkGenerator.ChunkData {
private ChunkSection getChunkSection(int y, boolean create) { private ChunkSection getChunkSection(int y, boolean create) {
ChunkSection section = sections[y >> 4]; ChunkSection section = sections[y >> 4];
if (create && section == null) { if (create && section == null) {
sections[y >> 4] = section = new ChunkSection(y); sections[y >> 4] = section = new ChunkSection(y >> 4 << 4);
} }
return section; return section;
} }