Skip to content

Commit

Permalink
Fixed ship creator item not handling scale correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
StewStrong committed Oct 1, 2023
1 parent 1551831 commit 57f9cc2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class ShipCreatorItem(
val newShipPosInShipyard = blockPos.toJOMLD().add(0.5, 0.5, 0.5)
val newShipRotation = parentShip.transform.shipToWorldRotation
var newShipScaling = parentShip.transform.shipToWorldScaling.mul(scale, Vector3d())
if (newShipScaling.x() < scale) {
if (newShipScaling.x() < minScaling) {
// Do not allow scaling to go below minScaling
newShipScaling = Vector3d(minScaling, minScaling, minScaling)
}
Expand Down

0 comments on commit 57f9cc2

Please sign in to comment.