mirror of
https://github.com/songoda/EpicHoppers.git
synced 2025-02-14 10:51:30 +01:00
fix SD-3691
This commit is contained in:
parent
0a01b9d350
commit
8fa7d03549
@ -257,7 +257,7 @@ public class HopTask extends BukkitRunnable {
|
||||
final ItemStack toMove = contents[i];
|
||||
|
||||
// If item is invalid, try the next slot.
|
||||
if (toMove == null)
|
||||
if (toMove == null || toMove.getAmount() == 0)
|
||||
continue;
|
||||
|
||||
// if we're not moving the item that we're trying to craft, we need to verify that we're not trying to fill the last slot
|
||||
@ -456,6 +456,7 @@ public class HopTask extends BukkitRunnable {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets a set of slots that can be pulled from based on the given material
|
||||
* @param material The material to get pullable slots for
|
||||
|
Loading…
Reference in New Issue
Block a user