Fix spray nozzle (#22492)

This commit is contained in:
themias
2023-12-14 15:49:40 -05:00
committed by GitHub
parent 59e23c5283
commit 641c95f443

View File

@@ -33,7 +33,11 @@ public partial class SharedGunSystem
{
slotEntity = null;
if (!_inventory.TryGetContainerSlotEnumerator(uid, out var enumerator, component.TargetSlot))
if (!Containers.TryGetContainingContainer(uid, out var container))
return false;
var user = container.Owner;
if (!_inventory.TryGetContainerSlotEnumerator(user, out var enumerator, component.TargetSlot))
return false;
while (enumerator.NextItem(out var item))