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:
@@ -37,7 +37,7 @@ public class BuildPlan implements Position, QuadTreeObject{
|
||||
public BuildPlan(int x, int y, int rotation, Block block){
|
||||
this.x = x;
|
||||
this.y = y;
|
||||
this.rotation = rotation;
|
||||
this.rotation = block.planRotation(rotation);
|
||||
this.block = block;
|
||||
this.breaking = false;
|
||||
}
|
||||
@@ -46,7 +46,7 @@ public class BuildPlan implements Position, QuadTreeObject{
|
||||
public BuildPlan(int x, int y, int rotation, Block block, Object config){
|
||||
this.x = x;
|
||||
this.y = y;
|
||||
this.rotation = rotation;
|
||||
this.rotation = block.planRotation(rotation);
|
||||
this.block = block;
|
||||
this.breaking = false;
|
||||
this.config = config;
|
||||
@@ -138,7 +138,7 @@ public class BuildPlan implements Position, QuadTreeObject{
|
||||
public BuildPlan set(int x, int y, int rotation, Block block){
|
||||
this.x = x;
|
||||
this.y = y;
|
||||
this.rotation = rotation;
|
||||
this.rotation = block.planRotation(rotation);
|
||||
this.block = block;
|
||||
this.breaking = false;
|
||||
return this;
|
||||
|
||||
Reference in New Issue
Block a user