fix for auto connecting hoppers

This commit is contained in:
Brianna O'Keefe 2018-12-10 08:51:43 -05:00
parent de4d315833
commit ed03d46be6

View File

@ -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());
}