Closes Anuken/Mindustry-Suggestions/issues/5877

This commit is contained in:
Anuken
2025-10-03 18:41:12 +09:00
parent 155f0d50f7
commit 1985d67f7a
5 changed files with 6 additions and 1 deletions

View File

@@ -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);

View File

@@ -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 */

View File

@@ -160,6 +160,7 @@ public class Turret extends ReloadTurret{
rotate = true;
quickRotate = false;
drawArrow = false;
ignoreLineRotation = true;
rotateDrawEditor = false;
visualRotationOffset = -90f;
regionRotated1 = 1;

View File

@@ -69,6 +69,7 @@ public class BeamDrill extends Block{
solid = true;
drawArrow = false;
regionRotated1 = 1;
ignoreLineRotation = true;
ambientSoundVolume = 0.05f;
ambientSound = Sounds.minebeam;

View File

@@ -57,6 +57,7 @@ public class WallCrafter extends Block{
rotate = true;
update = true;
solid = true;
ignoreLineRotation = true;
regionRotated1 = 1;
envEnabled |= Env.space;