Skip to content

Commit

Permalink
Fixed the funny
Browse files Browse the repository at this point in the history
  • Loading branch information
Michal78900 committed Aug 17, 2021
1 parent 541045f commit 7d9ab67
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions MapEditorReborn/Methods.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 7d9ab67

Please sign in to comment.