mirror of
https://github.com/songoda/EpicHoppers.git
synced 2024-11-09 20:21:41 +01:00
fix SD-3587
This commit is contained in:
parent
ae25f4d99e
commit
0a01b9d350
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user