diff --git a/core/src/io/anuke/mindustry/input/DesktopInput.java b/core/src/io/anuke/mindustry/input/DesktopInput.java index e77d15838f..cc97387579 100644 --- a/core/src/io/anuke/mindustry/input/DesktopInput.java +++ b/core/src/io/anuke/mindustry/input/DesktopInput.java @@ -45,6 +45,7 @@ public class DesktopInput extends InputHandler{ group.fill(t -> { t.bottom().update(() -> t.getColor().a = Mathf.lerpDelta(t.getColor().a, player.isBuilding() ? 1f : 0f, 0.15f)); t.visible(() -> Core.settings.getBool("hints") && selectRequests.isEmpty()); + t.touchable(() -> t.getColor().a < 0.1f ? Touchable.disabled : Touchable.childrenOnly); t.table(Styles.black6, b -> { b.defaults().left(); b.label(() -> Core.bundle.format(!player.isBuilding ? "resumebuilding" : "pausebuilding", Core.keybinds.get(Binding.pause_building).key.name())).style(Styles.outlineLabel); @@ -59,7 +60,7 @@ public class DesktopInput extends InputHandler{ t.visible(() -> lastSchematic != null && !selectRequests.isEmpty()); t.bottom(); t.table(Styles.black6, b -> { - b.touchable(Touchable.enabled); + //b.touchable(Touchable.enabled); b.defaults().left(); b.add(Core.bundle.format("schematic.flip", Core.keybinds.get(Binding.schematic_flip_x).key.name(), diff --git a/core/src/io/anuke/mindustry/world/blocks/distribution/Sorter.java b/core/src/io/anuke/mindustry/world/blocks/distribution/Sorter.java index 37a5f13f84..a1ef2bce86 100644 --- a/core/src/io/anuke/mindustry/world/blocks/distribution/Sorter.java +++ b/core/src/io/anuke/mindustry/world/blocks/distribution/Sorter.java @@ -79,7 +79,7 @@ public class Sorter extends Block{ } boolean isSame(Tile tile, Tile other){ - return other != null && other.block() == this && other.entity().sortItem == tile.entity().sortItem; + return other != null && other.block() instanceof Sorter && other.entity().sortItem == tile.entity().sortItem; } Tile getTileTarget(Item item, Tile dest, Tile source, boolean flip){