Skip to content

Commit

Permalink
Fix room hud and MW not registering on new room
Browse files Browse the repository at this point in the history
  • Loading branch information
Miepee committed Jun 24, 2024
1 parent 1ef2a80 commit 79c15c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion YAMS-LIB/patches/Multiworld.cs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public static void Apply(UndertaleData gmData, GlobalDecompileContext decompileC



oControl.EventHandlerFor(EventType.Other, EventSubtypeOther.User4, gmData).AppendGMLInCode("""
oControl.EventHandlerFor(EventType.Other, EventSubtypeOther.RoomStart, gmData).AppendGMLInCode("""
mw_debug("Player has changed their room")
send_room_info_packet();
""");
Expand Down
2 changes: 1 addition & 1 deletion YAMS-LIB/patches/qol/DisplayRoomNameOnHUD.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public static void Apply(UndertaleData gmData, GlobalDecompileContext decompileC
draw_surface_ext(rnh_surface, (oControl.displayx - d[0]), (oControl.displayy - d[1]), oControl.display_scale, oControl.display_scale, 0, -1, 1)
""");

var roomNameHudRoomStart = roomHudObject.EventHandlerFor(EventType.Other, EventSubtypeOther.User4, gmData);
var roomNameHudRoomStart = roomHudObject.EventHandlerFor(EventType.Other, EventSubtypeOther.RoomStart, gmData);
roomNameHudRoomStart.SubstituteGMLCode( """
var newRoomName = ds_map_find_value(roomNames, room_get_name(room))
if (global.ingame && textToDisplay != newRoomName)
Expand Down

0 comments on commit 79c15c7

Please sign in to comment.