Allowed amount was off.

This commit is contained in:
Brianna O'Keefe 2018-09-23 11:44:49 -04:00
parent 3be979e59d
commit 009f5569f8

View File

@ -53,7 +53,7 @@ public class BlockListeners implements Listener {
int max = maxHoppers(player);
if (max != -1 && amt >= max) {
if (max != -1 && amt > max) {
player.sendMessage(instance.getLocale().getMessage("event.hopper.toomany", max));
e.setCancelled(true);
return;