fix mobile copysetting

This commit is contained in:
J-VdS
2020-08-20 23:34:24 +02:00
parent 0d425456be
commit a418d7e59f

View File

@@ -485,12 +485,16 @@ public class MobileInput extends InputHandler implements GestureListener{
lineMode = false; lineMode = false;
}else if(mode == schematicSelect){ }else if(mode == schematicSelect){
if(!state.rules.copyAllowed){
ui.showInfoToast("@schematic.copydisabled", 3f);
}else {
selectRequests.clear(); selectRequests.clear();
lastSchematic = schematics.create(lineStartX, lineStartY, lastLineX, lastLineY); lastSchematic = schematics.create(lineStartX, lineStartY, lastLineX, lastLineY);
useSchematic(lastSchematic); useSchematic(lastSchematic);
if (selectRequests.isEmpty()) { if (selectRequests.isEmpty()) {
lastSchematic = null; lastSchematic = null;
} }
}
schematicMode = false; schematicMode = false;
mode = none; mode = none;
}else{ }else{