From 25ae7b97aaa3006ed38d25469a6f3ab97e6034ce Mon Sep 17 00:00:00 2001 From: Minxyzgo <71958008+Minxyzgo@users.noreply.github.com> Date: Thu, 25 Feb 2021 01:25:38 +0800 Subject: [PATCH] schematic uses camera position (#4775) * Update InputHandler.java * Update InputHandler.java * Update MobileInput.java * Update InputHandler.java * Update MobileInput.java --- core/src/mindustry/input/MobileInput.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/mindustry/input/MobileInput.java b/core/src/mindustry/input/MobileInput.java index 22a61c3d18..c05d709fa9 100644 --- a/core/src/mindustry/input/MobileInput.java +++ b/core/src/mindustry/input/MobileInput.java @@ -424,7 +424,7 @@ public class MobileInput extends InputHandler implements GestureListener{ @Override public void useSchematic(Schematic schem){ selectRequests.clear(); - selectRequests.addAll(schematics.toRequests(schem, player.tileX(), player.tileY())); + selectRequests.addAll(schematics.toRequests(schem, World.toTile(Core.camera.position.x), World.toTile(Core.camera.position.y))); lastSchematic = schem; }