mirror of
https://github.com/songoda/EpicHoppers.git
synced 2024-11-29 21:54:16 +01:00
Duality transfer issue fix, blockbreak container ignore fix
This commit is contained in:
parent
9653ba7192
commit
28025434fb
@ -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
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user