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);
|
Point2 next = i == points.size - 1 ? null : points.get(i + 1);
|
||||||
line.x = point.x;
|
line.x = point.x;
|
||||||
line.y = point.y;
|
line.y = point.y;
|
||||||
if(!overrideLineRotation || diagonal){
|
if((!overrideLineRotation || diagonal) && !(block != null && block.ignoreLineRotation)){
|
||||||
int result = baseRotation;
|
int result = baseRotation;
|
||||||
if(next != null){
|
if(next != null){
|
||||||
result = Tile.relativeTo(point.x, point.y, next.x, next.y);
|
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;
|
public float visualRotationOffset = 0f;
|
||||||
/** if rotate = 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, this block won't face the line drag direction */
|
||||||
|
public boolean ignoreLineRotation = false;
|
||||||
/** 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;
|
||||||
/** number of different variant regions to use */
|
/** number of different variant regions to use */
|
||||||
|
|||||||
@@ -160,6 +160,7 @@ public class Turret extends ReloadTurret{
|
|||||||
rotate = true;
|
rotate = true;
|
||||||
quickRotate = false;
|
quickRotate = false;
|
||||||
drawArrow = false;
|
drawArrow = false;
|
||||||
|
ignoreLineRotation = true;
|
||||||
rotateDrawEditor = false;
|
rotateDrawEditor = false;
|
||||||
visualRotationOffset = -90f;
|
visualRotationOffset = -90f;
|
||||||
regionRotated1 = 1;
|
regionRotated1 = 1;
|
||||||
|
|||||||
@@ -69,6 +69,7 @@ public class BeamDrill extends Block{
|
|||||||
solid = true;
|
solid = true;
|
||||||
drawArrow = false;
|
drawArrow = false;
|
||||||
regionRotated1 = 1;
|
regionRotated1 = 1;
|
||||||
|
ignoreLineRotation = true;
|
||||||
ambientSoundVolume = 0.05f;
|
ambientSoundVolume = 0.05f;
|
||||||
ambientSound = Sounds.minebeam;
|
ambientSound = Sounds.minebeam;
|
||||||
|
|
||||||
|
|||||||
@@ -57,6 +57,7 @@ public class WallCrafter extends Block{
|
|||||||
rotate = true;
|
rotate = true;
|
||||||
update = true;
|
update = true;
|
||||||
solid = true;
|
solid = true;
|
||||||
|
ignoreLineRotation = true;
|
||||||
regionRotated1 = 1;
|
regionRotated1 = 1;
|
||||||
|
|
||||||
envEnabled |= Env.space;
|
envEnabled |= Env.space;
|
||||||
|
|||||||
Reference in New Issue
Block a user