mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-30 15:38:02 +01:00
we never want half or empty stacks
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user