Update content for .Owner culling (#14185)
This commit is contained in:
@@ -44,7 +44,7 @@ public sealed class MaterialStorageSystem : SharedMaterialStorageSystem
|
||||
{
|
||||
if (!base.TryInsertMaterialEntity(user, toInsert, receiver, component))
|
||||
return false;
|
||||
_transform.DetachParentToNull(Transform(toInsert));
|
||||
_transform.DetachParentToNull(toInsert, Transform(toInsert));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@ namespace Content.Client.Stack
|
||||
// TODO PREDICT ENTITY DELETION: This should really just be a normal entity deletion call.
|
||||
if (component.Count <= 0)
|
||||
{
|
||||
Xform.DetachParentToNull(Transform(uid));
|
||||
Xform.DetachParentToNull(uid, Transform(uid));
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user