mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-27 04:55:47 +01:00
Fix ChunkData material alone being treated as legacy
This commit is contained in:
parent
80c43fc1de
commit
4587569c06
@ -37,7 +37,7 @@ public final class CraftChunkData implements ChunkGenerator.ChunkData {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setBlock(int x, int y, int z, Material material) {
|
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
|
@Override
|
||||||
@ -52,7 +52,7 @@ public final class CraftChunkData implements ChunkGenerator.ChunkData {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setRegion(int xMin, int yMin, int zMin, int xMax, int yMax, int zMax, Material material) {
|
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
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user