mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-27 13:15:33 +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