Duality transfer issue fix, blockbreak container ignore fix

This commit is contained in:
Esophose 2019-06-01 09:53:10 -06:00
parent 9653ba7192
commit 28025434fb
2 changed files with 2 additions and 2 deletions

View File

@ -55,7 +55,7 @@ public class ModuleBlockBreak implements Module {
if (above.getType() == Material.WATER
|| above.getType() == Material.LAVA
|| above.getType() == Material.AIR
|| above instanceof InventoryHolder)
|| above.getState() instanceof InventoryHolder)
return;
// Don't break farm items from EpicFarming

View File

@ -375,7 +375,7 @@ public class HopTask extends BukkitRunnable {
// Prevent item from being moved again during this cycle.
// Only block if the hopper being transfered into doesn't already contain the same item.
// Don't blacklist if the block is transfering items into itself
if (!destinationInventory.contains(itemToMove) && currentDestination != currentHolder)
if (!destinationInventory.contains(itemToMove) && currentDestination != currentHolder && currentHolder instanceof Hopper)
this.blacklist.put(currentDestination, itemToMove);
// Move item to destination.