Named fixtures for banana peels (#3822)
* Named fixtures for banana peels * Soaps and PDAs * Update submodule
This commit is contained in:
@@ -75,14 +75,14 @@ namespace Content.Shared.GameObjects.Components.Disposal
|
||||
|
||||
bool ICollideSpecial.PreventCollide(IPhysBody collided)
|
||||
{
|
||||
if (IsExiting(collided.Entity)) return true;
|
||||
if (IsExiting(collided.Owner)) return true;
|
||||
if (!Owner.TryGetComponent(out IContainerManager? manager)) return false;
|
||||
|
||||
if (manager.ContainsEntity(collided.Entity))
|
||||
if (manager.ContainsEntity(collided.Owner))
|
||||
{
|
||||
if (!_intersecting.Contains(collided.Entity))
|
||||
if (!_intersecting.Contains(collided.Owner))
|
||||
{
|
||||
_intersecting.Add(collided.Entity);
|
||||
_intersecting.Add(collided.Owner);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user