anchor.diff:  	user.set_machine(src)
   	interact(user)
   
  -/*******************
  -*   SmartFridge Menu
  -********************/
  -
  -/obj/machinery/smartfridge/interact(mob/user)
  -	if(stat)
  -		return FALSE
  -
  -<<<<<<< HEAD
  -	var/dat = "<TT><b>Select an item:</b><br>"
  -
  -	if (contents.len == 0)
  -		dat += "<font color = 'red'>No product loaded!</font>"
  -	else
  -		var/listofitems = list()
  -		for (var/atom/movable/O in contents)
  -			if (listofitems[O.name])
  -				listofitems[O.name]++
  -			else
  -				listofitems[O.name] = 1
  -		sortList(listofitems)
  -
  -		for (var/O in listofitems)
  -			if(listofitems[O] <= 0)
  -				continue
  -			var/N = listofitems[O]
  -			var/itemName = url_encode(O)
  -			dat += "<FONT color = 'blue'><B>[capitalize(O)]</B>:"
  -			dat += " [N] </font>"
  -			dat += "<a href='byond://?src=\ref[src];vend=[itemName];amount=1'>Vend</A> "
  -			if(N > 5)
  -				dat += "(<a href='byond://?src=\ref[src];vend=[itemName];amount=5'>x5</A>)"
  -				if(N > 10)
  -					dat += "(<a href='byond://?src=\ref[src];vend=[itemName];amount=10'>x10</A>)"
  -					if(N > 25)
  -						dat += "(<a href='byond://?src=\ref[src];vend=[itemName];amount=25'>x25</A>)"
  -			if(N > 1)
  -				dat += "(<a href='?src=\ref[src];vend=[itemName];amount=[N]'>All</A>)"
  -
  -			dat += "<br>"
  -
  -		dat += "</TT>"
  -	user << browse("<HEAD><TITLE>[src] supplies</TITLE></HEAD><TT>[dat]</TT>", "window=smartfridge")
  -	onclose(user, "smartfridge")
  -	return dat
  -
  -/obj/machinery/smartfridge/Topic(var/href, var/list/href_list)
  -	if(..())
  -=======
  +
  +
   /obj/machinery/smartfridge/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = FALSE, datum/tgui/master_ui = null, datum/ui_state/state = GLOB.default_state)
   	ui = SStgui.try_update_ui(user, src, ui_key, ui, force_open)
   	if(!ui)
  
positive.code: /obj/machinery/smartfridge/ui_act(action, params)
  	. = ..()
  	if(.)
  >>>>>>> 5f6b2a9... Merge pull request #30519 from vuonojenmustaturska/smartfridges2electricboogaloo
  		return
  	usr.set_machine(src)
  
  	var/N = href_list["vend"]
  	var/amount = text2num(href_list["amount"])
  
  	var/i = amount
  	for(var/obj/O in contents)
  		if(i <= 0)
  			break
  		if(O.name == N)
  			O.loc = src.loc
  			i--
  
  
  	updateUsrDialog()
  
  
  // ----------------------------
  
negative.code: /obj/machinery/smartfridge/drying_rack/default_deconstruction_crowbar(obj/item/crowbar/C, ignore_panel = 1)
  	..()
  
  /obj/machinery/smartfridge/drying_rack/ui_data(mob/user)
  	. = ..()
  	.["isdryer"] = TRUE
  