Turret construct preview fix

This commit is contained in:
Anuken 2025-09-28 10:49:56 -04:00
parent d6e408267e
commit bfd742e89b
2 changed files with 3 additions and 1 deletions

View file

@ -248,7 +248,7 @@ public class ConstructBlock extends Block{
Shaders.blockbuild.time = Time.time;
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();
i ++;
}

View file

@ -162,6 +162,8 @@ public class Turret extends ReloadTurret{
drawArrow = false;
rotateDrawEditor = false;
visualRotationOffset = -90f;
regionRotated1 = 1;
regionRotated2 = 2;
}
@Override