Closes Anuken/Mindustry-Suggestions/issues/5877
This commit is contained in:
@@ -2254,7 +2254,7 @@ public abstract class InputHandler implements InputProcessor, GestureListener{
|
||||
Point2 next = i == points.size - 1 ? null : points.get(i + 1);
|
||||
line.x = point.x;
|
||||
line.y = point.y;
|
||||
if(!overrideLineRotation || diagonal){
|
||||
if((!overrideLineRotation || diagonal) && !(block != null && block.ignoreLineRotation)){
|
||||
int result = baseRotation;
|
||||
if(next != null){
|
||||
result = Tile.relativeTo(point.x, point.y, next.x, next.y);
|
||||
|
||||
@@ -118,6 +118,8 @@ public class Block extends UnlockableContent implements Senseable{
|
||||
public float visualRotationOffset = 0f;
|
||||
/** 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, this block won't face the line drag direction */
|
||||
public boolean ignoreLineRotation = false;
|
||||
/** if true, schematic flips with this block are inverted. */
|
||||
public boolean invertFlip = false;
|
||||
/** number of different variant regions to use */
|
||||
|
||||
@@ -160,6 +160,7 @@ public class Turret extends ReloadTurret{
|
||||
rotate = true;
|
||||
quickRotate = false;
|
||||
drawArrow = false;
|
||||
ignoreLineRotation = true;
|
||||
rotateDrawEditor = false;
|
||||
visualRotationOffset = -90f;
|
||||
regionRotated1 = 1;
|
||||
|
||||
@@ -69,6 +69,7 @@ public class BeamDrill extends Block{
|
||||
solid = true;
|
||||
drawArrow = false;
|
||||
regionRotated1 = 1;
|
||||
ignoreLineRotation = true;
|
||||
ambientSoundVolume = 0.05f;
|
||||
ambientSound = Sounds.minebeam;
|
||||
|
||||
|
||||
@@ -57,6 +57,7 @@ public class WallCrafter extends Block{
|
||||
rotate = true;
|
||||
update = true;
|
||||
solid = true;
|
||||
ignoreLineRotation = true;
|
||||
regionRotated1 = 1;
|
||||
|
||||
envEnabled |= Env.space;
|
||||
|
||||
Reference in New Issue
Block a user