From 4ac910acce01bb041c5c8ab5eba86007b7001c42 Mon Sep 17 00:00:00 2001 From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Mon, 25 Jul 2022 17:35:34 +1000 Subject: [PATCH] Fix magboots in space (#10019) --- Content.Shared/Gravity/SharedGravitySystem.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Content.Shared/Gravity/SharedGravitySystem.cs b/Content.Shared/Gravity/SharedGravitySystem.cs index a8600e839e..6952f13ef4 100644 --- a/Content.Shared/Gravity/SharedGravitySystem.cs +++ b/Content.Shared/Gravity/SharedGravitySystem.cs @@ -35,7 +35,9 @@ namespace Content.Shared.Gravity } // 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(ent, out var boots) && boots.On) return false;