Sheet-meister 2000 (#16686)

This commit is contained in:
Nemanja
2023-06-14 20:49:23 -04:00
committed by GitHub
parent df39370055
commit 9946bd1f61
51 changed files with 439 additions and 15 deletions

View File

@@ -117,7 +117,7 @@ public sealed class MaterialStorageSystem : SharedMaterialStorageSystem
{
overflowMaterial = 0;
if (amount <= 0)
if (amount <= 0 || materialProto.StackEntity == null)
return new List<EntityUid>();
var entProto = _prototypeManager.Index<EntityPrototype>(materialProto.StackEntity);