mirror of
https://github.com/tobspr/shapez.io.git
synced 2026-03-02 03:39:21 +00:00
Add originalRotation to static comp in order to fix bugs with the automatic placement
This commit is contained in:
@@ -87,9 +87,9 @@ export class BeltSystem extends GameSystemWithFilter {
|
||||
} = metaBelt.computeOptimalDirectionAndRotationVariantAtTile(
|
||||
this.root,
|
||||
new Vector(x, y),
|
||||
targetStaticComp.rotationDegrees
|
||||
targetStaticComp.originalRotation
|
||||
);
|
||||
targetStaticComp.rotationDegrees = rotation;
|
||||
targetStaticComp.rotation = rotation;
|
||||
metaBelt.updateRotationVariant(targetEntity, rotationVariant);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user