From a418d7e59f6a80580b18c8db03f8a9aa8ec23258 Mon Sep 17 00:00:00 2001 From: J-VdS Date: Thu, 20 Aug 2020 23:34:24 +0200 Subject: [PATCH] fix mobile copysetting --- core/src/mindustry/input/MobileInput.java | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/core/src/mindustry/input/MobileInput.java b/core/src/mindustry/input/MobileInput.java index 3f6853f4a1..a78ffdd0c0 100644 --- a/core/src/mindustry/input/MobileInput.java +++ b/core/src/mindustry/input/MobileInput.java @@ -485,11 +485,15 @@ public class MobileInput extends InputHandler implements GestureListener{ lineMode = false; }else if(mode == schematicSelect){ - selectRequests.clear(); - lastSchematic = schematics.create(lineStartX, lineStartY, lastLineX, lastLineY); - useSchematic(lastSchematic); - if(selectRequests.isEmpty()){ - lastSchematic = null; + if(!state.rules.copyAllowed){ + ui.showInfoToast("@schematic.copydisabled", 3f); + }else { + selectRequests.clear(); + lastSchematic = schematics.create(lineStartX, lineStartY, lastLineX, lastLineY); + useSchematic(lastSchematic); + if (selectRequests.isEmpty()) { + lastSchematic = null; + } } schematicMode = false; mode = none;