Make items' default rotation orient them correctly (#22258)
This commit is contained in:
parent
b4f0a77ff1
commit
09dbb24e7e
1 changed files with 1 additions and 1 deletions
|
|
@ -819,7 +819,7 @@ public abstract class SharedStorageSystem : EntitySystem
|
|||
{
|
||||
for (var x = storageBounding.Left; x <= storageBounding.Right; x++)
|
||||
{
|
||||
for (var angle = Angle.Zero; angle <= Angle.FromDegrees(360); angle += Math.PI / 2f)
|
||||
for (var angle = Angle.FromDegrees(-itemEnt.Comp.StoredRotation); angle <= Angle.FromDegrees(360 - itemEnt.Comp.StoredRotation); angle += Math.PI / 2f)
|
||||
{
|
||||
var location = new ItemStorageLocation(angle, (x, y));
|
||||
if (ItemFitsInGridLocation(itemEnt, storageEnt, location))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue