Skip to content

Commit

Permalink
Fixes examination of storage by ghosts (#501)
Browse files Browse the repository at this point in the history
  • Loading branch information
EgorDinamit authored Jan 14, 2024
1 parent b8313b2 commit 6e37f34
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions code/game/objects/items/weapons/storage/storage.dm
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@

/obj/item/storage/proc/show_to(mob/user as mob)
if(storage_ui)
prepare_ui()
storage_ui.on_open(user)
storage_ui.show_to(user)

/obj/item/storage/proc/hide_from(mob/user as mob)
Expand All @@ -105,9 +107,7 @@
if(robot.shown_robot_modules) //The robot's inventory is open, need to close it first.
robot.hud_used.toggle_show_robot_modules()

prepare_ui()
storage_ui.on_open(user)
storage_ui.show_to(user)
show_to(user)

/obj/item/storage/proc/prepare_ui()
storage_ui.prepare_ui()
Expand Down

0 comments on commit 6e37f34

Please sign in to comment.