From 067b85dd266a2c335583fd9d255d0af18b6b30da Mon Sep 17 00:00:00 2001 From: Kashargul <144968721+Kashargul@users.noreply.github.com> Date: Sat, 27 Jan 2024 22:47:15 +0100 Subject: [PATCH] we never want half or empty stacks --- code/modules/materials/materials/_materials.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/modules/materials/materials/_materials.dm b/code/modules/materials/materials/_materials.dm index 1e1fec8a2d0..be14faf62a2 100644 --- a/code/modules/materials/materials/_materials.dm +++ b/code/modules/materials/materials/_materials.dm @@ -326,7 +326,8 @@ var/list/name_to_material // Debris product. Used ALL THE TIME. /datum/material/proc/place_sheet(var/turf/target, amount) - if(stack_type) + amount = round(amount) + if(stack_type && amount > 0) return new stack_type(target, amount) // As above.