Fix inventory enumerator resolve error (#22227)

This commit is contained in:
Leon Friedrich
2023-12-07 16:46:51 -05:00
committed by GitHub
parent 287d22cc49
commit 5f2a4f970c

View File

@@ -87,7 +87,7 @@ public partial class InventorySystem : EntitySystem
public bool TryGetContainerSlotEnumerator(Entity<InventoryComponent?> entity, out InventorySlotEnumerator containerSlotEnumerator, SlotFlags flags = SlotFlags.All)
{
if (!Resolve(entity.Owner, ref entity.Comp))
if (!Resolve(entity.Owner, ref entity.Comp, false))
{
containerSlotEnumerator = default;
return false;