we never want half or empty stacks

This commit is contained in:
Kashargul
2024-01-27 22:47:15 +01:00
committed by GitHub
parent 6d1acf98db
commit 067b85dd26
@@ -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.