Delta-v/Content.Server/Materials
Pieter-Jan Briers e475512e7b Fix error log when recycling something with small material counts. (#32723)
* Fix error log when recycling something with small material counts.

MaterialStorageSystem.SpawnMultipleFromMaterial now doesn't call StackSystem.SpawnMultiple if it tries to spawn zero. This happens because the recycler calls SpawnMultipleFromMaterial for everything recycled, even if the amount it has stored is < the amount for one sheet.

* Update Content.Server/Materials/MaterialStorageSystem.cs

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>

---------

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
2024-10-24 00:17:33 +01:00
..
Components Biogenerator (#30694) 2024-09-14 13:38:21 +01:00
MaterialReclaimerSystem.cs Returned functionality to industrial reagent grinders (#31903) 2024-09-14 13:38:15 +01:00
MaterialStorageSystem.cs Fix error log when recycling something with small material counts. (#32723) 2024-10-24 00:17:33 +01:00
ProduceMaterialExtractorSystem.cs Biogenerator (#30694) 2024-09-14 13:38:21 +01:00