1
0
mirror of https://github.com/Anuken/Mindustry.git synced 2024-11-14 03:25:32 +03:00

schematic uses camera position (#4775)

* Update InputHandler.java

* Update InputHandler.java

* Update MobileInput.java

* Update InputHandler.java

* Update MobileInput.java
This commit is contained in:
Minxyzgo 2021-02-25 01:25:38 +08:00 committed by GitHub
parent afbde49fa2
commit 25ae7b97aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}