Revert "npc can no longer attack you through a locker" (#27680)

Revert "npc can no longer attack you through a locker (#27677)"

This reverts commit 83b486b63f.
This commit is contained in:
metalgearsloth
2024-05-05 19:22:33 +10:00
committed by GitHub
parent 2f3f917007
commit 37d0cb9c90

View File

@@ -224,7 +224,7 @@ public sealed class NPCUtilitySystem : EntitySystem
{ {
if (TryComp<EntityStorageComponent>(container.Owner, out var storageComponent)) if (TryComp<EntityStorageComponent>(container.Owner, out var storageComponent))
{ {
if (storageComponent is { Open: false }) if (storageComponent is { Open: false } && _weldable.IsWelded(container.Owner))
{ {
return 0.0f; return 0.0f;
} }