Turret construct preview fix
This commit is contained in:
@@ -248,7 +248,7 @@ public class ConstructBlock extends Block{
|
|||||||
Shaders.blockbuild.time = Time.time;
|
Shaders.blockbuild.time = Time.time;
|
||||||
Shaders.blockbuild.progress = progress;
|
Shaders.blockbuild.progress = progress;
|
||||||
|
|
||||||
Draw.rect(region, x, y, current.rotate && (noOverrides || current.regionRotated2 == i || current.regionRotated1 == i) ? rotdeg() : 0);
|
Draw.rect(region, x, y, current.rotate && (noOverrides || current.regionRotated2 == i || current.regionRotated1 == i) ? rotdeg() + current.visualRotationOffset : 0);
|
||||||
Draw.flush();
|
Draw.flush();
|
||||||
i ++;
|
i ++;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -162,6 +162,8 @@ public class Turret extends ReloadTurret{
|
|||||||
drawArrow = false;
|
drawArrow = false;
|
||||||
rotateDrawEditor = false;
|
rotateDrawEditor = false;
|
||||||
visualRotationOffset = -90f;
|
visualRotationOffset = -90f;
|
||||||
|
regionRotated1 = 1;
|
||||||
|
regionRotated2 = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user