mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
Food Replicator fixes (#9045)
This commit is contained in:
@@ -36,7 +36,6 @@
|
||||
. = ..()
|
||||
|
||||
default_apply_parts()
|
||||
RefreshParts()
|
||||
|
||||
/obj/machinery/food_replicator/dismantle()
|
||||
var/turf/T = get_turf(src)
|
||||
@@ -72,7 +71,7 @@
|
||||
var/product_path = products[choice]
|
||||
var/obj/item/weapon/reagent_containers/foodItem = new product_path
|
||||
|
||||
var/total = clamp(foodItem.reagents.get_free_space()-foodItem.reagents.total_volume, 1, 300)
|
||||
var/total = abs(foodItem.reagents.total_volume-foodItem.reagents.get_free_space())
|
||||
|
||||
if(!container)
|
||||
to_chat(user, SPAN_WARNING("There is no container!"))
|
||||
|
||||
Reference in New Issue
Block a user