Flatpacks and the Flatpacker 1001 (#23338)
* Flatpacker and flatpacks * ok that's good enough * convert solars/AME to flatpacks * mats, mats, we are the mats * basic mechanics are DONE * thing * final UI * sloth * rped jumpscare * rename
This commit is contained in:
@@ -37,9 +37,9 @@ public sealed partial class MaterialStorageControl : BoxContainer
|
||||
if (_owner == null)
|
||||
return;
|
||||
|
||||
if (!_entityManager.TryGetComponent<MaterialStorageComponent>(_owner, out var materialStorage))
|
||||
if (_entityManager.Deleted(_owner) || !_entityManager.TryGetComponent<MaterialStorageComponent>(_owner, out var materialStorage))
|
||||
{
|
||||
Dispose();
|
||||
_owner = null;
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user