Skip to content

Commit 50ce0ce

Browse files
committed
Fix entities in Wrecks
1 parent f61015a commit 50ce0ce

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

NitroxClient/GameLogic/Spawning/WorldEntities/PrefabPlaceholderEntitySpawner.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,11 @@ private bool VerifyCanSpawnOrError(WorldEntity entity, Optional<GameObject> pare
6565

6666
private void SetupObject(WorldEntity entity, GameObject gameObject, GameObject parent)
6767
{
68-
gameObject.transform.localPosition = entity.Transform.LocalPosition.ToUnity();
69-
gameObject.transform.localRotation = entity.Transform.LocalRotation.ToUnity();
70-
gameObject.transform.localScale = entity.Transform.LocalScale.ToUnity();
7168
if (entity is PrefabPlaceholderEntity prefabEntity && !prefabEntity.IsEntitySlotEntity && parent)
7269
{
70+
gameObject.transform.localPosition = entity.Transform.LocalPosition.ToUnity();
71+
gameObject.transform.localRotation = entity.Transform.LocalRotation.ToUnity();
72+
gameObject.transform.localScale = entity.Transform.LocalScale.ToUnity();
7373
gameObject.transform.SetParent(parent.transform, false);
7474
}
7575
}

0 commit comments

Comments
 (0)