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:
@@ -415,9 +415,10 @@ public class MobileInput extends InputHandler implements GestureListener{
|
||||
|
||||
//draw last placed plan
|
||||
if(!plan.breaking && plan == lastPlaced && plan.block != null){
|
||||
boolean valid = validPlace(tile.x, tile.y, plan.block, rotation);
|
||||
int rot = block.planRotation(rotation);
|
||||
boolean valid = validPlace(tile.x, tile.y, plan.block, rot);
|
||||
Draw.mixcol();
|
||||
plan.block.drawPlace(tile.x, tile.y, rotation, valid);
|
||||
plan.block.drawPlace(tile.x, tile.y, rot, valid);
|
||||
|
||||
drawOverlapCheck(plan.block, tile.x, tile.y, valid);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user