fix: use correct z in command core check #4

Merged
ChomeNS merged 1 commit from amy/chomensmod:1.20.1 into 1.20.1 2024-12-28 20:52:39 -05:00

View file

@ -116,7 +116,7 @@ public class CommandCore {
try {
for (int x = withPos.getMinX(); x <= withPos.getMaxX(); x++) {
for (int y = withPos.getMinY(); y <= withPos.getMaxY(); y++) {
for (int z = withPos.getMaxZ(); z <= withPos.getMaxZ(); z++) {
for (int z = withPos.getMinZ(); z <= withPos.getMaxZ(); z++) {
final BlockPos pos = new BlockPos(x, y, z);
final Block block = world.getBlockState(pos).getBlock();