From 439becf8a928d28d76038ce919a593dbef4073cb Mon Sep 17 00:00:00 2001 From: AlexProgrammerDE <40795980+AlexProgrammerDE@users.noreply.github.com> Date: Mon, 16 Oct 2023 09:27:01 +0200 Subject: [PATCH] Push latest updates --- .../serverwrecker/pathfinding/graph/MinecraftGraph.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/pistonmaster/serverwrecker/pathfinding/graph/MinecraftGraph.java b/src/main/java/net/pistonmaster/serverwrecker/pathfinding/graph/MinecraftGraph.java index c19d7c7bc..03c0d8335 100644 --- a/src/main/java/net/pistonmaster/serverwrecker/pathfinding/graph/MinecraftGraph.java +++ b/src/main/java/net/pistonmaster/serverwrecker/pathfinding/graph/MinecraftGraph.java @@ -104,7 +104,7 @@ public GraphInstructions[] getActions(BotEntityState node) { } var basePosition = node.positionBlock(); - var positionBlock = node.positionBlock().add(key); + var positionBlock = basePosition.add(key); if (blockState == null) { blockState = node.levelState() .getBlockStateAt(positionBlock) @@ -162,6 +162,7 @@ public GraphInstructions[] getActions(BotEntityState node) { continue; } + // This block should not be placed against if (!blockState.blockShapeType().isFullBlock()) { continue; }