Skip to content

Commit

Permalink
Fixes gas heating system UI
Browse files Browse the repository at this point in the history
  • Loading branch information
Doxxmedearly committed Jul 30, 2023
1 parent 251c64c commit 3a7dad0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 3 additions & 3 deletions code/modules/atmospherics/components/unary/heat_source.dm
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,13 @@
/obj/machinery/atmospherics/unary/heater/attack_hand(mob/user as mob)
ui_interact(user)

/obj/machinery/atmospherics/unary/freezer/ui_interact(mob/user, var/datum/tgui/ui)
/obj/machinery/atmospherics/unary/heater/ui_interact(mob/user, var/datum/tgui/ui)
ui = SStgui.try_update_ui(user, src, ui)
if(!ui)
ui = new(user, src, "Freezer", "Gas Heating System", 440, 300)
ui.open()

/obj/machinery/atmospherics/unary/freezer/ui_data(mob/user)
/obj/machinery/atmospherics/unary/heater/ui_data(mob/user)
var/list/data = list()

data["on"] = !!use_power
Expand All @@ -118,7 +118,7 @@

return data

/obj/machinery/atmospherics/unary/freezer/ui_act(action, list/params, datum/tgui/ui, datum/ui_state/state)
/obj/machinery/atmospherics/unary/heater/ui_act(action, list/params, datum/tgui/ui, datum/ui_state/state)
. = ..()
if(.)
return TRUE
Expand Down
5 changes: 5 additions & 0 deletions html/changelogs/doxxmedearly-heater_ui_fix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
author: Doxxmedearly
delete-after: True
changes:
- bugfix: "Gas heater UI now functions."
- bugfix: "Gas coolers no longer come up as 'gas heating system' in their UI."

0 comments on commit 3a7dad0

Please sign in to comment.