Pass correct coords for ore block checks

This commit is contained in:
Astrash committed 2023-10-20 10:30:25 +11:00
1 parent e80e998cec
commit 4e5b02ef42
1 file changed
+1 -1
@@ -138,7 +138,7 @@ public class VanillaOre implements Structure {
if(!bitSet.get(ac)) {
bitSet.set(ac);
BlockType block = world.getBlockState(x, y, z).getBlockType();
BlockType block = world.getBlockState(t1, v1, aa).getBlockType();
if(shouldPlace(block, random, world, t1, v1, aa)) {
world.setBlockState(t1, v1, aa, getMaterial(block), isApplyGravity());