Utility schematic method changes / Geothermal map submission update

This commit is contained in:
Anuken
2025-08-20 12:09:25 -04:00
parent a7d1714fe8
commit 6d86707781
6 changed files with 15 additions and 8 deletions

View File

@@ -499,13 +499,13 @@ public class DesktopInput extends InputHandler{
}
@Override
public void useSchematic(Schematic schem){
public void useSchematic(Schematic schem, boolean checkHidden){
block = null;
schematicX = tileX(getMouseX());
schematicY = tileY(getMouseY());
selectPlans.clear();
selectPlans.addAll(schematics.toPlans(schem, schematicX, schematicY));
selectPlans.addAll(schematics.toPlans(schem, schematicX, schematicY, checkHidden));
mode = none;
}

View File

@@ -1317,9 +1317,11 @@ public abstract class InputHandler implements InputProcessor, GestureListener{
}
public void useSchematic(Schematic schem){
selectPlans.addAll(schematics.toPlans(schem, player.tileX(), player.tileY()));
useSchematic(schem, true);
}
public abstract void useSchematic(Schematic schem, boolean checkHidden);
protected void showSchematicSave(){
if(lastSchematic == null) return;

View File

@@ -501,9 +501,9 @@ public class MobileInput extends InputHandler implements GestureListener{
}
@Override
public void useSchematic(Schematic schem){
public void useSchematic(Schematic schem, boolean checkHidden){
selectPlans.clear();
selectPlans.addAll(schematics.toPlans(schem, World.toTile(Core.camera.position.x), World.toTile(Core.camera.position.y)));
selectPlans.addAll(schematics.toPlans(schem, World.toTile(Core.camera.position.x), World.toTile(Core.camera.position.y), checkHidden));
lastSchematic = schem;
}