Fix spray nozzle (#22492)
This commit is contained in:
@@ -33,7 +33,11 @@ public partial class SharedGunSystem
|
|||||||
{
|
{
|
||||||
slotEntity = null;
|
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;
|
return false;
|
||||||
|
|
||||||
while (enumerator.NextItem(out var item))
|
while (enumerator.NextItem(out var item))
|
||||||
|
|||||||
Reference in New Issue
Block a user