lockRotation
This commit is contained in:
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user