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

This commit is contained in:
Tyzemol
2024-05-05 00:57:58 +05:00
committed by GitHub
parent 540c45cbe9
commit 83b486b63f

View File

@@ -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;
}