mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-12-06 02:40:23 -08:00
Lock rotation of blocks with rotate = false to 0 (#8531)
* Lock rotation of blocks that don't rotate
* Fix input visuals
* Default to false
Quick, stop forcing changes to mods before sk yells at me.
* lock GenericCrafter rotation if rotate = false
* Convert from a setter a to block method
* Simplify
* Revert "lock GenericCrafter rotation if rotate = false"
This reverts commit 26ac41baf5.
* Remove `lockRotation` boolean.
Pointless. If you want something to rotate, just do `rotate = true; drawArrow = false;`
This commit is contained in:
parent
d14cdfd59c
commit
26c0c7467b
5 changed files with 19 additions and 12 deletions
|
|
@ -1044,7 +1044,7 @@ public abstract class InputHandler implements InputProcessor, GestureListener{
|
|||
}
|
||||
plan.x = World.toTile(wx - plan.block.offset) + ox;
|
||||
plan.y = World.toTile(wy - plan.block.offset) + oy;
|
||||
plan.rotation = Mathf.mod(plan.rotation + direction, 4);
|
||||
plan.rotation = plan.block.planRotation(Mathf.mod(plan.rotation + direction, 4));
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue