Fixed an issue with "Collection was modified" error when using Player.Items in a foreach loop and removing an object. Now, I use ToList() to create a new temporary list.
Moved methods from the extensions of my private plugin to the Player.cs API so that everyone can use them.
IsInventoryFul now uses Inventory.MaxSlot in case the number of inventory slots for the player changes at some point.
Fixed an issue with "Collection was modified" error when using Player.Items in a foreach loop and removing an object. Now, I use
ToList()
to create a new temporary list.Moved methods from the extensions of my private plugin to the Player.cs API so that everyone can use them.
IsInventoryFul
now usesInventory.MaxSlot
in case the number of inventory slots for the player changes at some point.Fixed some typos.