mirror of
https://github.com/songoda/EpicHoppers.git
synced 2024-09-28 23:57:28 +02:00
fix for auto connecting hoppers
This commit is contained in:
parent
de4d315833
commit
ed03d46be6
@ -32,7 +32,7 @@ public class HopperListeners implements Listener {
|
||||
return;
|
||||
|
||||
Hopper hopper = instance.getHopperManager().getHopper(source.getLocation());
|
||||
if (hopper.getLinkedBlocks() == null && !hopper.getLinkedBlocks().isEmpty()) {
|
||||
if (hopper.getLinkedBlocks() == null || hopper.getLinkedBlocks().isEmpty()) {
|
||||
hopper.clearLinkedBlocks();
|
||||
hopper.addLinkedBlock(event.getDestination().getLocation().getBlock());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user