Skip to content

Commit

Permalink
Fixed exception with outlaw TP (#882)
Browse files Browse the repository at this point in the history
Co-authored-by: Goosius1 <[email protected]>
  • Loading branch information
Goosius1 and Goosius1 authored Jul 25, 2023
1 parent b41b93f commit 4699180
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@ public void onOutlawTeleportEvent(OutlawTeleportEvent event) {
&& event.getOutlawLocation() != null
&& event.getOutlawLocation().getWorld() != null
&& TownyAPI.getInstance().getTownyWorld(event.getOutlawLocation().getWorld()).isWarAllowed()
&& event.getTown() != null
&& SiegeController.hasActiveSiege(event.getTown())) {
event.setCancelled(true);
}
Expand Down

0 comments on commit 4699180

Please sign in to comment.