From 56ea0c7cf2b5ea9f208bff7fee9cd1bef2809686 Mon Sep 17 00:00:00 2001 From: Miepee Date: Sat, 22 Jun 2024 01:02:27 +0200 Subject: [PATCH] Fix doors not extending at right side of a room --- YAMS-LIB/patches/DoorLockRando.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/YAMS-LIB/patches/DoorLockRando.cs b/YAMS-LIB/patches/DoorLockRando.cs index 58c99fb..f4db98c 100644 --- a/YAMS-LIB/patches/DoorLockRando.cs +++ b/YAMS-LIB/patches/DoorLockRando.cs @@ -154,7 +154,7 @@ public static void Apply(UndertaleData gmData, GlobalDecompileContext decompileC .InstanceID; bool shouldExtendTiles = false; - if (gameObject.X == 0 || gameObject.Y == 0) + if (gameObject.X == 0 || gameObject.X == room.Width) shouldExtendTiles = true; else if (door.InstanceID == waterfallID || door.InstanceID == hideoutAlphaID || door.InstanceID == skreekStreetID || door.InstanceID == graveGrottoID) shouldExtendTiles = true;