fix SD-3587

This commit is contained in:
jascotty2 2019-08-30 16:23:52 -05:00
parent ae25f4d99e
commit 0a01b9d350

View File

@ -444,7 +444,7 @@ public class HopTask extends BukkitRunnable {
for (int i = 0; i < hopperContents.length; i++) {
final ItemStack item = hopperContents[i];
if (item != null && hopper.getFilter().getVoidList().stream().anyMatch(itemStack -> Methods.isSimilarMaterial(itemStack, item))) {
int amt = Math.min(0, item.getAmount() - maxToMove);
int amt = Math.max(0, item.getAmount() - maxToMove);
if (amt == 0) {
hopperCache.removeItem(i);
} else {