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:
parent
afbde49fa2
commit
25ae7b97aa
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user