diff --git a/MapEditorReborn/Methods.cs b/MapEditorReborn/Methods.cs index 9294d5ad..0046d059 100644 --- a/MapEditorReborn/Methods.cs +++ b/MapEditorReborn/Methods.cs @@ -415,10 +415,7 @@ public static GameObject SpawnObject(Vector3 position, ToolGunMode mode) { GameObject gameObject = Object.Instantiate(mode.GetObjectByMode(), position, Quaternion.identity); - Room room = Map.FindParentRoom(gameObject); - - if (room != null) - gameObject.transform.rotation = GetRelativeRotation(Vector3.zero, room); + gameObject.transform.rotation = GetRelativeRotation(Vector3.zero, Map.FindParentRoom(gameObject)); switch (mode) {