Fix magboots in space (#10019)
This commit is contained in:
@@ -35,7 +35,9 @@ namespace Content.Shared.Gravity
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Something holding us down
|
// Something holding us down
|
||||||
if (_inventory.TryGetSlotEntity(uid, "shoes", out var ent))
|
// If the planet has gravity component and no gravity it will still give gravity
|
||||||
|
// If there's no gravity comp at all (i.e. space) then they don't work.
|
||||||
|
if (gravity != null && _inventory.TryGetSlotEntity(uid, "shoes", out var ent))
|
||||||
{
|
{
|
||||||
if (TryComp<MagbootsComponent>(ent, out var boots) && boots.On)
|
if (TryComp<MagbootsComponent>(ent, out var boots) && boots.On)
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user