13
0
geforkt von Mirrors/Paper

Fix ChunkData material alone being treated as legacy

By: md_5 <git@md-5.net>
Dieser Commit ist enthalten in:
CraftBukkit/Spigot 2018-08-03 08:53:52 +10:00
Ursprung e9fc2452ed
Commit baacb621a6

Datei anzeigen

@ -37,7 +37,7 @@ public final class CraftChunkData implements ChunkGenerator.ChunkData {
@Override
public void setBlock(int x, int y, int z, Material material) {
setBlock(x, y, z, CraftMagicNumbers.getBlock(material, (byte) 0));
setBlock(x, y, z, material.createBlockData());
}
@Override
@ -52,7 +52,7 @@ public final class CraftChunkData implements ChunkGenerator.ChunkData {
@Override
public void setRegion(int xMin, int yMin, int zMin, int xMax, int yMax, int zMax, Material material) {
setRegion(xMin, yMin, zMin, xMax, yMax, zMax, CraftMagicNumbers.getBlock(material, (byte) 0));
setRegion(xMin, yMin, zMin, xMax, yMax, zMax, material.createBlockData());
}
@Override