Skip to content

Commit

Permalink
Priority system fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeyDertan committed Mar 21, 2019
1 parent ac1596c commit 76aa6d3
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,13 @@ private void handleEvent(int flag, Position pos, Player player, Event ev, boolea
if (!region.isVectorInside(pos) || (liquidSource != null && region.isVectorInside(liquidSource)) || (mustBeMember && (player != null && region.isLivesIn(player.getName())))) {
continue;
}
if (!region.getFlagState(flag)) if (this.prioritySystem) break;
if (!region.getFlagState(flag)) {
if (this.prioritySystem) {
break;
} else {
continue;
}
}

ev.setCancelled();
if (player != null && this.needMessage[flag]) {
Expand Down

0 comments on commit 76aa6d3

Please sign in to comment.