mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-02-20 06:12:38 +01:00
NPC limit is now inclusive rather than exclusive
This commit is contained in:
parent
cfeabdff0d
commit
d5c4ae337d
@ -88,7 +88,7 @@ public class EventListen implements Listener {
|
|||||||
owned++;
|
owned++;
|
||||||
}
|
}
|
||||||
int wouldOwn = owned + 1;
|
int wouldOwn = owned + 1;
|
||||||
if (wouldOwn >= limit) {
|
if (wouldOwn > limit) {
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
event.setCancelReason(Messaging.tr(Messages.OVER_NPC_LIMIT, limit));
|
event.setCancelReason(Messaging.tr(Messages.OVER_NPC_LIMIT, limit));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user