Skip to content

Commit

Permalink
only go to tavern if built (#10629)
Browse files Browse the repository at this point in the history
Only go to tavern if level 1 instead of townhall
  • Loading branch information
Raycoms committed Feb 2, 2025
1 parent 34506a2 commit 36758c5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2022,7 +2022,7 @@ public BlockPos getHomePosition()
if (colony != null)
{
final IBuilding tavern = colony.getBuildingManager().getFirstBuildingMatching(b -> b.getBuildingType() == ModBuildings.tavern.get());
if (tavern != null)
if (tavern != null && tavern.getBuildingLevel() > 0)
{
return tavern.getPosition();
}
Expand Down

0 comments on commit 36758c5

Please # to comment.