Better Godmode (#37020)
* Commit * Oversights oops * breaking changes * unbreaking changes * Compatibility with AfterFullyEaten * Fixed * Update Content.Server/Kitchen/EntitySystems/ReagentGrinderSystem.cs --------- Co-authored-by: Nemanja <98561806+EmoGarbage404@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
4407eab96b
commit
62c380fc53
@@ -12,6 +12,7 @@ using Content.Shared.Movement.Systems;
|
||||
using Robust.Shared.Audio;
|
||||
using Robust.Shared.Timing;
|
||||
using System.Numerics;
|
||||
using Content.Shared.Damage.Components;
|
||||
|
||||
namespace Content.Server.Body.Systems;
|
||||
|
||||
@@ -110,6 +111,9 @@ public sealed class BodySystem : SharedBodySystem
|
||||
return new HashSet<EntityUid>();
|
||||
}
|
||||
|
||||
if (HasComp<GodmodeComponent>(bodyId))
|
||||
return new HashSet<EntityUid>();
|
||||
|
||||
var xform = Transform(bodyId);
|
||||
if (xform.MapUid is null)
|
||||
return new HashSet<EntityUid>();
|
||||
|
||||
Reference in New Issue
Block a user