mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 02:09:41 +00:00
[MIRROR] fix(nif_tgui): Fixes TGUI interact on ghosts (#6979)
Co-authored-by: Heroman3003 <31296024+Heroman3003@users.noreply.github.com> Co-authored-by: CHOMPStation2 <chompsation2@gmail.com>
This commit is contained in:
@@ -98,6 +98,8 @@
|
|||||||
* Standard TGUI stub to open the NIF.js template.
|
* Standard TGUI stub to open the NIF.js template.
|
||||||
*/
|
*/
|
||||||
/obj/item/device/nif/tgui_interact(mob/user, datum/tgui/ui, datum/tgui/parent_ui)
|
/obj/item/device/nif/tgui_interact(mob/user, datum/tgui/ui, datum/tgui/parent_ui)
|
||||||
|
if(!ishuman(user))
|
||||||
|
return FALSE
|
||||||
ui = SStgui.try_update_ui(user, src, ui)
|
ui = SStgui.try_update_ui(user, src, ui)
|
||||||
if(!ui)
|
if(!ui)
|
||||||
ui = new(user, src, "NIF", name)
|
ui = new(user, src, "NIF", name)
|
||||||
|
|||||||
Reference in New Issue
Block a user