mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-13 08:04:22 +01:00
sane stacks (#18342)
* sane stacks * . * . * . * - * clean that up * . * . * fix chat scaling * readd cords * . * guh --------- Co-authored-by: Selis <12716288+ItsSelis@users.noreply.github.com>
This commit is contained in:
@@ -234,9 +234,7 @@
|
||||
var/recursive = amount == -1 ? 1 : 0
|
||||
var/datum/material/matdata = get_material_by_name(material_name)
|
||||
var/stack_type = matdata.stack_type
|
||||
var/obj/item/stack/material/S = new stack_type(loc)
|
||||
if(amount <= 0)
|
||||
amount = S.max_amount
|
||||
var/obj/item/stack/material/S = new stack_type(loc, -1)
|
||||
var/ejected = min(round(stored_material[material_name] / S.perunit), amount)
|
||||
if(!S.set_amount(min(ejected, amount)))
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user