diff options
author | syeyoung <cyong06@naver.com> | 2021-03-08 13:08:13 +0900 |
---|---|---|
committer | syeyoung <cyong06@naver.com> | 2021-03-08 13:08:13 +0900 |
commit | a8476a8318343c664058da35ee7c94542b167954 (patch) | |
tree | 88bf52a78bfa4e3aece28cf0a952f0187bb9a323 /src/main/java/kr/syeyoung/dungeonsguide/pathfinding | |
parent | 9b65a433d9738262023e082c9905b9b8a3c4d51b (diff) | |
download | Skyblock-Dungeons-Guide-a8476a8318343c664058da35ee7c94542b167954.tar.gz Skyblock-Dungeons-Guide-a8476a8318343c664058da35ee7c94542b167954.tar.bz2 Skyblock-Dungeons-Guide-a8476a8318343c664058da35ee7c94542b167954.zip |
FIX SMOL BUGS
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/pathfinding')
-rw-r--r-- | src/main/java/kr/syeyoung/dungeonsguide/pathfinding/NodeProcessorDungeonRoom.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/pathfinding/NodeProcessorDungeonRoom.java b/src/main/java/kr/syeyoung/dungeonsguide/pathfinding/NodeProcessorDungeonRoom.java index 8e937b34..8c0f447c 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/pathfinding/NodeProcessorDungeonRoom.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/pathfinding/NodeProcessorDungeonRoom.java @@ -81,7 +81,7 @@ public class NodeProcessorDungeonRoom extends NodeProcessor { if (dir.getY() == 0 && curr.getBlock() == Blocks.iron_bars && up.getBlock() == Blocks.air && entityIn.getEntityWorld().getBlockState(new BlockPos(currentPoint.xCoord, currentPoint.yCoord, currentPoint.zCoord)).getBlock() != Blocks.iron_bars) { boolean theFlag = false; - if (newX == 0) { + if (dir.getZ() == 0) { if (entityIn.getEntityWorld().getBlockState(dungeonRoom.getMin().add(newX, newY, newZ) .add(0,0,1)).getBlock() == Blocks.air) { theFlag = true; @@ -89,7 +89,7 @@ public class NodeProcessorDungeonRoom extends NodeProcessor { .add(0,0,-1)).getBlock() == Blocks.air) { theFlag = true; } - } else if (newZ == 0) { + } else if (dir.getX() == 0) { if (entityIn.getEntityWorld().getBlockState(dungeonRoom.getMin().add(newX, newY, newZ) .add(-1,0,0)).getBlock() == Blocks.air) { theFlag = true; |