Skip to content

Commit

Permalink
SmartFridge runtime fix (#146)
Browse files Browse the repository at this point in the history
## Что этот PR делает
Убрал размер окна с DM, забыл после нано удалить

## Почему это хорошо для игры
Рантаймы плохо
  • Loading branch information
AyIong authored Mar 1, 2024
1 parent b264574 commit 6cdbe3c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions code/game/machinery/kitchen/smartfridge.dm
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@
/obj/machinery/smartfridge/tgui_interact(mob/user, datum/tgui/ui)
ui = SStgui.try_update_ui(user, src, ui)
if(!ui)
ui = new(user, src, "SmartFridge", name, 400, 500)
ui = new(user, src, "SmartFridge", name)
ui.set_autoupdate(FALSE)
ui.open()

Expand All @@ -184,7 +184,11 @@
var/datum/stored_items/I = item_records[i]
var/count = I.get_amount()
if(count > 0)
items.Add(list(list("display_name" = html_encode(capitalize(I.item_name)), "vend" = i, "quantity" = count)))
items += list(list(
"display_name" = I.item_name,
"vend" = i,
"quantity" = count
))

if(length(items) > 0)
data["contents"] = items
Expand Down

0 comments on commit 6cdbe3c

Please sign in to comment.