SirBlack@RustYard
The correct way to fix this would be to change the space being checked, this would keep the "Not enough space" error working, prevent the user from claiming a kit he truly does not have room for, and not spill the overflow items onto the ground. If you know exactly how many spaces you are increasing change the default values in this portion:internal bool HasSpaceForItems(BasePlayer player) { int wearSpacesFree = 7 - player.inventory.containerWear.itemList.Count; int mainSpacesFree = 24 - player.inventory.containerMain.itemList.Count; int beltSpacesFree = 6 - player.inventory.containerBelt.itemList.Count; return (wearSpacesFree >= WearItems.Length && beltSpacesFree >= BeltItems.Length && mainSpacesFree >= MainItems.Length) || ItemCount <= mainSpacesFree + beltSpacesFree; }
thanks that helped