mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-12-29 04:28:16 +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++;
|
||||
}
|
||||
int wouldOwn = owned + 1;
|
||||
if (wouldOwn >= limit) {
|
||||
if (wouldOwn > limit) {
|
||||
event.setCancelled(true);
|
||||
event.setCancelReason(Messaging.tr(Messages.OVER_NPC_LIMIT, limit));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user