Skip to content

Commit

Permalink
Fix edge case where water turbine would look weird if it was shuffled…
Browse files Browse the repository at this point in the history
… into the vanilla place
  • Loading branch information
Miepee committed Nov 23, 2023
1 parent d77395c commit 55bef48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion YAMS-LIB/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2501,7 +2501,7 @@ void RotateTextureAndSaveToTexturePage(int rotation, UndertaleTexturePageItem te
room.Tiles.Remove(tile);
}

if (doorLock.Lock == DoorLockType.A2WaterTurbine)
if (gameObject.ObjectDefinition != waterTurbineObject && doorLock.Lock == DoorLockType.A2WaterTurbine)
{
gameObject.ObjectDefinition = waterTurbineObject;
gameObject.X += (24 * (int)gameObject.ScaleX);
Expand Down

0 comments on commit 55bef48

Please sign in to comment.