mirror of
https://code.chipmunk.land/ChomeNS/chipmunkmod.git
synced 2025-11-13 21:06:16 +00:00
fix: use correct z in command core check
This commit is contained in:
parent
4026ef2664
commit
774500eba0
1 changed files with 1 additions and 1 deletions
|
|
@ -116,7 +116,7 @@ public class CommandCore {
|
||||||
try {
|
try {
|
||||||
for (int x = withPos.getMinX(); x <= withPos.getMaxX(); x++) {
|
for (int x = withPos.getMinX(); x <= withPos.getMaxX(); x++) {
|
||||||
for (int y = withPos.getMinY(); y <= withPos.getMaxY(); y++) {
|
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 BlockPos pos = new BlockPos(x, y, z);
|
||||||
|
|
||||||
final Block block = world.getBlockState(pos).getBlock();
|
final Block block = world.getBlockState(pos).getBlock();
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue