summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2018-08-03 08:53:52 +1000
committermd_5 <git@md-5.net>2018-08-03 08:53:52 +1000
commit4587569c061b07043b3b04c8fce6bcf25a1262f7 (patch)
tree654262a967fc84ba77b74bd91c01ffdaf805acbd
parent80c43fc1deaa164a5eb85aa779eb26a7deca7287 (diff)
downloadcraftbukkit-4587569c061b07043b3b04c8fce6bcf25a1262f7.tar
craftbukkit-4587569c061b07043b3b04c8fce6bcf25a1262f7.tar.gz
craftbukkit-4587569c061b07043b3b04c8fce6bcf25a1262f7.tar.lz
craftbukkit-4587569c061b07043b3b04c8fce6bcf25a1262f7.tar.xz
craftbukkit-4587569c061b07043b3b04c8fce6bcf25a1262f7.zip
Fix ChunkData material alone being treated as legacy
-rw-r--r--src/main/java/org/bukkit/craftbukkit/generator/CraftChunkData.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/generator/CraftChunkData.java b/src/main/java/org/bukkit/craftbukkit/generator/CraftChunkData.java
index a0fda929..c26f0ed1 100644
--- a/src/main/java/org/bukkit/craftbukkit/generator/CraftChunkData.java
+++ b/src/main/java/org/bukkit/craftbukkit/generator/CraftChunkData.java
@@ -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