Skip to content

Commit

Permalink
Fix conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
drfiveminusmint committed May 26, 2024
1 parent 51f30fc commit 179cb26
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public void onCraftRelease (CraftReleaseEvent event) {
}

private void processCraftRemoval(Craft leaderCraft) {
if (!(leaderCraft instanceof PlayerCraft) || Config.SiegeEnable) return;
if (!(leaderCraft instanceof PlayerCraft) || !Config.SiegeEnable) return;
Player player = ((PlayerCraft)leaderCraft).getPilot();
Siege currentSiege = getSiegeByLeader(player);
if (currentSiege == null) return;
Expand Down

0 comments on commit 179cb26

Please sign in to comment.