allow copies
This commit is contained in:
@@ -40,6 +40,8 @@ public class Rules{
|
||||
public boolean reactorExplosions = true;
|
||||
/** Whether schematics are allowed */
|
||||
public boolean schematicAllowed = true;
|
||||
/** Whether copying is allowed */
|
||||
public boolean copyAllowed = true;
|
||||
/** Whether units use and require ammo. */
|
||||
public boolean unitAmmo = false;
|
||||
/** How fast unit pads build units. */
|
||||
|
||||
@@ -401,8 +401,8 @@ public class DesktopInput extends InputHandler{
|
||||
}
|
||||
|
||||
if(Core.input.keyRelease(Binding.schematic_select) && !Core.scene.hasKeyboard()){
|
||||
if(!state.rules.schematicAllowed){
|
||||
ui.showInfoToast("@schematic.disabled", 3f);
|
||||
if(!state.rules.copyAllowed){
|
||||
ui.showInfoToast("@schematic.copydisabled", 3f);
|
||||
}else {
|
||||
lastSchematic = schematics.create(schemX, schemY, rawCursorX, rawCursorY);
|
||||
useSchematic(lastSchematic);
|
||||
|
||||
Reference in New Issue
Block a user