NPC limit is now inclusive rather than exclusive

This commit is contained in:
fullwall 2013-04-18 22:40:11 +08:00
parent cfeabdff0d
commit d5c4ae337d

View File

@ -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));
}