mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-09 16:07:40 +00:00
Merge pull request #15720 from BlueWildrose/autolatheshocks
Shocked autolathe will no longer infinitely zap you with the menu open
This commit is contained in:
@@ -62,14 +62,15 @@
|
||||
if(!is_operational())
|
||||
return
|
||||
|
||||
if(shocked && !(stat & NOPOWER))
|
||||
shock(user,50)
|
||||
|
||||
ui = SStgui.try_update_ui(user, src, ui)
|
||||
if(!ui)
|
||||
ui = new(user, src, "Autolathe", capitalize(src.name))
|
||||
ui.open()
|
||||
|
||||
if(shocked && !(stat & NOPOWER))
|
||||
if(shock(user,50))
|
||||
ui.close() //close the window if they got zapped successfully as to prevent them from getting zapped infinitely.
|
||||
|
||||
/obj/machinery/autolathe/ui_data(mob/user)
|
||||
var/list/data = list()
|
||||
data["materials"] = list()
|
||||
|
||||
Reference in New Issue
Block a user