Rename usages of collidable to physics (#2230)
* Rename usages of collidable to physics * high tier PANIQUE * aaaaaaaaAAAAAa * cursed commit dont research * Fix urist and items being anchored * Fix the rest
This commit is contained in:
@@ -126,8 +126,8 @@ namespace Content.Server.GameObjects.Components.Recycling
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!entity.TryGetComponent(out ICollidableComponent collidable) ||
|
||||
collidable.Anchored)
|
||||
if (!entity.TryGetComponent(out IPhysicsComponent physics) ||
|
||||
physics.Anchored)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
@@ -163,16 +163,16 @@ namespace Content.Server.GameObjects.Components.Recycling
|
||||
for (var i = _intersecting.Count - 1; i >= 0; i--)
|
||||
{
|
||||
var entity = _intersecting[i];
|
||||
|
||||
|
||||
if (entity.Deleted || !CanMove(entity) || !_entityManager.IsIntersecting(Owner, entity))
|
||||
{
|
||||
_intersecting.RemoveAt(i);
|
||||
continue;
|
||||
}
|
||||
|
||||
if (entity.TryGetComponent(out ICollidableComponent collidable))
|
||||
if (entity.TryGetComponent(out IPhysicsComponent physics))
|
||||
{
|
||||
var controller = collidable.EnsureController<ConveyedController>();
|
||||
var controller = physics.EnsureController<ConveyedController>();
|
||||
controller.Move(direction, frameTime);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user