fix: use correct z in command core check

This commit is contained in:
amyavi 2024-12-28 22:47:27 -03:00
parent 4026ef2664
commit 774500eba0
No known key found for this signature in database

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();