mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-18 10:33:30 +01:00
Prevents ghosts from setting off mousetraps (#16274)
* Prevents ghosts from setting off mousetraps * Update code/game/objects/items/weapons/storage/storage.dm Co-authored-by: dearmochi <1496804+dearmochi@users.noreply.github.com> * Note to self: Do not be tired when commiting suggestions Co-authored-by: dearmochi <1496804+dearmochi@users.noreply.github.com> Co-authored-by: dearmochi <1496804+dearmochi@users.noreply.github.com>
This commit is contained in:
@@ -163,7 +163,7 @@
|
||||
/obj/item/storage/proc/show_to(mob/user)
|
||||
if(!user.client)
|
||||
return
|
||||
if(user.s_active != src) // Switching from another container
|
||||
if(user.s_active != src && !isobserver(user))
|
||||
for(var/obj/item/I in src)
|
||||
if(I.on_found(user)) // For mouse traps and such
|
||||
return // If something triggered, don't open the UI
|
||||
|
||||
Reference in New Issue
Block a user