fixes the crash for realsies

This commit is contained in:
Paul
2021-11-10 18:34:21 +01:00
parent 4600f0531d
commit d5b1c044b7

View File

@@ -67,7 +67,7 @@ namespace Robust.Server.GameObjects
{
var entity = base.CreateEntity(prototypeName, uid);
if (prototypeName != null)
if (!string.IsNullOrWhiteSpace(prototypeName))
{
var prototype = PrototypeManager.Index<EntityPrototype>(prototypeName);