Skip to content

Commit

Permalink
Fix canhold logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaioru committed Oct 6, 2024
1 parent de9e76b commit f7a34ea
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public async Task<bool> CanHold(IEnumerable<ItemSlotBase> items)
slots += (int)Math.Ceiling(count / (double)template.MaxPerSlot);
}

if (inventory.Items.Count(kv => kv.Key > 0) + slots <= inventory.SlotMax)
if (inventory.Items.Count(kv => kv.Key > 0) + slots > inventory.SlotMax)
return false;
}

Expand Down

0 comments on commit f7a34ea

Please sign in to comment.