Make godmode able to be disabled and more accessible to the rest of the code (#2560)
* Make Godmode able to be disabled and more accessible * You got a license for that exclamation mark? * Move restore logic to the entity system * Make MovedByPressureComponent able to be disabled * Add extension that gives you the moved by pressure component * Fix not disabling moved by pressure
This commit is contained in:
@@ -197,7 +197,7 @@ namespace Content.Server.Atmos
|
||||
foreach (var entity in _gridTileLookupSystem.GetEntitiesIntersecting(GridIndex, GridIndices))
|
||||
{
|
||||
if (!entity.TryGetComponent(out IPhysicsComponent physics)
|
||||
|| !entity.TryGetComponent(out MovedByPressureComponent pressure)
|
||||
|| !entity.IsMovedByPressure(out var pressure)
|
||||
|| entity.IsInContainer())
|
||||
continue;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user