From 9af3cf7a13a6c328aa4cf6b1c0c1bd4a155fae90 Mon Sep 17 00:00:00 2001 From: zethnest <16971676+zethnest@users.noreply.github.com> Date: Sun, 3 May 2020 21:48:07 +0800 Subject: [PATCH] double-click disconnect mass driver (#1970) --- core/src/mindustry/world/blocks/distribution/MassDriver.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/src/mindustry/world/blocks/distribution/MassDriver.java b/core/src/mindustry/world/blocks/distribution/MassDriver.java index 0d5c63cf97..377bd8d0cc 100644 --- a/core/src/mindustry/world/blocks/distribution/MassDriver.java +++ b/core/src/mindustry/world/blocks/distribution/MassDriver.java @@ -212,7 +212,10 @@ public class MassDriver extends Block{ @Override public boolean onConfigureTileTapped(Tilec other){ - if(this == other) return false; + if(this == other){ + tile.configure(-1); + return false; + } if(link == other.pos()){ tile.configure(-1);