fix mobile copysetting
This commit is contained in:
@@ -485,11 +485,15 @@ public class MobileInput extends InputHandler implements GestureListener{
|
|||||||
|
|
||||||
lineMode = false;
|
lineMode = false;
|
||||||
}else if(mode == schematicSelect){
|
}else if(mode == schematicSelect){
|
||||||
selectRequests.clear();
|
if(!state.rules.copyAllowed){
|
||||||
lastSchematic = schematics.create(lineStartX, lineStartY, lastLineX, lastLineY);
|
ui.showInfoToast("@schematic.copydisabled", 3f);
|
||||||
useSchematic(lastSchematic);
|
}else {
|
||||||
if(selectRequests.isEmpty()){
|
selectRequests.clear();
|
||||||
lastSchematic = null;
|
lastSchematic = schematics.create(lineStartX, lineStartY, lastLineX, lastLineY);
|
||||||
|
useSchematic(lastSchematic);
|
||||||
|
if (selectRequests.isEmpty()) {
|
||||||
|
lastSchematic = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
schematicMode = false;
|
schematicMode = false;
|
||||||
mode = none;
|
mode = none;
|
||||||
|
|||||||
Reference in New Issue
Block a user