Storage Standardization [Take 2] (#21270)
This commit is contained in:
@@ -38,10 +38,11 @@ public sealed partial class StorageSystem
|
||||
if (entityStorageComp != null && EntityStorage.Insert(ent, uid, entityStorageComp))
|
||||
continue;
|
||||
|
||||
if (storageComp != null && Insert(uid, ent, out _, storageComp: storageComp, playSound: false))
|
||||
var reason = string.Empty;
|
||||
if (storageComp != null && Insert(uid, ent, out _, out reason, storageComp: storageComp, playSound: false))
|
||||
continue;
|
||||
|
||||
Log.Error($"Tried to StorageFill {item} inside {ToPrettyString(uid)} but can't.");
|
||||
Log.Error($"Tried to StorageFill {item} inside {ToPrettyString(uid)} but can't. Reason: {Loc.GetString(reason ?? "no reason.")}");
|
||||
EntityManager.DeleteEntity(ent);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user