Skip to content

Commit

Permalink
Better logic and message on claim denial.
Browse files Browse the repository at this point in the history
  • Loading branch information
LlmDl committed Nov 5, 2024
1 parent bd4bba6 commit ae6243a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3490,8 +3490,8 @@ private static void vetTownAllowedTheseClaims(Town town, boolean outpost, List<W
.findFirst();
if (outpostOptional.isPresent()) {
Outpost outpostObject = outpostOptional.get();
if (outpostObject.getNumTownBlocks() > town.getMaxAllowedOutpostLandmass())
throw new TownyException("Your town is unable to make an outpost this large.");
if (outpostObject.getNumTownBlocks() >= town.getMaxAllowedOutpostLandmass())
throw new TownyException(String.format("Your town is unable to make an outpost larger than %s.", town.getMaxAllowedOutpostLandmass()));
}
}

Expand Down

0 comments on commit ae6243a

Please sign in to comment.