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:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user