diff options
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/pathfinding')
-rw-r--r-- | src/main/java/kr/syeyoung/dungeonsguide/pathfinding/NodeProcessorDungeonRoom.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/pathfinding/NodeProcessorDungeonRoom.java b/src/main/java/kr/syeyoung/dungeonsguide/pathfinding/NodeProcessorDungeonRoom.java index 5ec6c84d..ae5cf458 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 { return i; } - private boolean isValidBlock(IBlockState state) { + public static boolean isValidBlock(IBlockState state) { return state.getBlock() == Blocks.air || state.getBlock() == Blocks.water || state.getBlock() == Blocks.lava || state.getBlock() == Blocks.flowing_water || state.getBlock() == Blocks.flowing_lava || state.getBlock() == Blocks.vine || state.getBlock() == Blocks.ladder @@ -91,6 +91,7 @@ public class NodeProcessorDungeonRoom extends NodeProcessor { || state.getBlock() == Blocks.fire || state.getBlock() == Blocks.torch || state.getBlock() == Blocks.rail || state.getBlock() == Blocks.golden_rail || state.getBlock() == Blocks.activator_rail || state.getBlock() == Blocks.activator_rail + || state.getBlock() == Blocks.carpet || (state == Blocks.stone.getStateFromMeta(2)); } } |