Fixes ghosts being able to open the UI of non-haunted eightballs (#24882)

They would never be able to vote or anything, but they might think it's
haunted, when it is not.
This commit is contained in:
coiax
2017-03-10 23:09:05 +01:00
committed by AnturK
parent caddc24f17
commit 73ebf1e68b
+1 -1
View File
@@ -155,7 +155,7 @@
return most_popular_answer
/obj/item/toy/eightball/ui_interact(mob/user, ui_key="main", datum/tgui/ui=null, force_open=0, datum/tgui/master_ui=null, datum/ui_state/state=observer_state)
/obj/item/toy/eightball/haunted/ui_interact(mob/user, ui_key="main", datum/tgui/ui=null, force_open=0, datum/tgui/master_ui=null, datum/ui_state/state=observer_state)
ui = SStgui.try_update_ui(user, src, ui_key, ui, force_open)
if(!ui)