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

This commit is contained in:
Tyzemol
2024-05-04 21:57:58 +02:00
committed by GitHub
parent 540c45cbe9
commit 83b486b63f
@@ -224,7 +224,7 @@ public sealed class NPCUtilitySystem : EntitySystem
{
if (TryComp<EntityStorageComponent>(container.Owner, out var storageComponent))
{
if (storageComponent is { Open: false } && _weldable.IsWelded(container.Owner))
if (storageComponent is { Open: false })
{
return 0.0f;
}