setBlockData -> setBlockState

This commit is contained in:
dfsek committed 2021-12-17 08:40:02 -07:00
1 parent 23fcd4a651
commit 31e20b12c0
8 files changed
+15 -15

No files matched your search

@@ -106,7 +106,7 @@ public class VanillaOre implements Structure {
if(y >= world.getMaxHeight() || y < world.getMinHeight()) continue;
BlockType block = world.getBlockState(x, y, z).getBlockType();
if((d13 * d13 + d14 * d14 + d15 * d15 < 1.0D) && getReplaceable().contains(block)) {
world.setBlockData(x, y, z, getMaterial(block), isApplyGravity());
world.setBlockState(x, y, z, getMaterial(block), isApplyGravity());
}
}
}