Skip to content

Commit 1caa7fd

Browse files
committed
Fix miner AI issue
1 parent a0cb036 commit 1caa7fd

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/com/minecolonies/core/colony/workorders/AbstractWorkOrder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ public void clearBlueprint()
574574
@Override
575575
public AABB getBoundingBox()
576576
{
577-
if (box == Constants.EMPTY_AABB && colony.getWorld() != null)
577+
if (box == Constants.EMPTY_AABB && colony != null && colony.getWorld() != null)
578578
{
579579
loadBlueprint(colony.getWorld(), b -> clearBlueprint());
580580
}

src/main/java/com/minecolonies/core/entity/ai/workers/production/EntityAIStructureMiner.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -780,7 +780,7 @@ private IAIState executeStructurePlacement(@NotNull final MineNode mineNode, @No
780780
mineNode.setStatus(MineNode.NodeStatus.IN_PROGRESS);
781781
building.markDirty();
782782
//Preload structures
783-
if (job.getWorkOrder().getBlueprint() == null)
783+
if (job.getWorkOrder() == null || job.getWorkOrder().getBlueprint() == null)
784784
{
785785
initStructure(mineNode,
786786
rotation,

0 commit comments

Comments
 (0)