lockRotation
This commit is contained in:
@@ -108,7 +108,7 @@ public class Block extends UnlockableContent implements Senseable{
|
|||||||
public boolean rotate;
|
public boolean rotate;
|
||||||
/** if rotate is true and this is false, the region won't rotate when drawing */
|
/** if rotate is true and this is false, the region won't rotate when drawing */
|
||||||
public boolean rotateDraw = true;
|
public boolean rotateDraw = true;
|
||||||
/** if rotation = false and this is true, rotation will be locked at 0 when placing (default); advanced use only */
|
/** if rotate = false and this is true, rotation will be locked at 0 when placing (default); advanced use only */
|
||||||
public boolean lockRotation = true;
|
public boolean lockRotation = true;
|
||||||
/** if true, schematic flips with this block are inverted. */
|
/** if true, schematic flips with this block are inverted. */
|
||||||
public boolean invertFlip = false;
|
public boolean invertFlip = false;
|
||||||
@@ -1344,8 +1344,7 @@ public class Block extends UnlockableContent implements Senseable{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public int planRotation(int rot){
|
public int planRotation(int rot){
|
||||||
if(!rotate) return 0;
|
return !rotate && lockRotation ? 0 : rot;
|
||||||
return rot;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void flipRotation(BuildPlan req, boolean x){
|
public void flipRotation(BuildPlan req, boolean x){
|
||||||
|
|||||||
Reference in New Issue
Block a user