]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Fix error log when recycling something with small material counts. (#32723)
authorPieter-Jan Briers <pieterjan.briers+git@gmail.com>
Thu, 10 Oct 2024 01:29:26 +0000 (03:29 +0200)
committerGitHub <noreply@github.com>
Thu, 10 Oct 2024 01:29:26 +0000 (03:29 +0200)
commit3e078ab3e0aff0d022bac2bb869090934e7f10e2
tree79a108988f932b79eb0af864de979c993e74946b
parentac16a05fef3b7bb029e62c8d0e354999027dca7d
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>
Content.Server/Materials/MaterialStorageSystem.cs