Fix disposals throwing you into the shadow realm (#1792)
This commit is contained in:
@@ -122,6 +122,12 @@ namespace Content.Server.GameObjects.Components.Disposal
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!entity.TryGetComponent(out ICollidableComponent collidable) ||
|
||||
!collidable.CanCollide)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!entity.HasComponent<ItemComponent>() &&
|
||||
!entity.HasComponent<IBodyManagerComponent>())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user