lockRotation

This commit is contained in:
Anuken
2023-06-16 17:04:43 -04:00
parent 9eefea3c6f
commit 743f61a92c

View File

@@ -108,7 +108,7 @@ public class Block extends UnlockableContent implements Senseable{
public boolean rotate;
/** if rotate is true and this is false, the region won't rotate when drawing */
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;
/** if true, schematic flips with this block are inverted. */
public boolean invertFlip = false;
@@ -1344,8 +1344,7 @@ public class Block extends UnlockableContent implements Senseable{
}
public int planRotation(int rot){
if(!rotate) return 0;
return rot;
return !rotate && lockRotation ? 0 : rot;
}
public void flipRotation(BuildPlan req, boolean x){