Removed allSlotsFilled as it gives a premature filled value. For instance, if your inventory size is 128 and you have stored a total of 65 items. Even though it can hold 63 more of the same item, it is considered full.
Removed the Math.ceil from the filled. As it was not giving the correct value when I tested with it. With the ceil I was getting a value like "0000000111111111" when there was only one item left. When "1111111101111111" is the number you get without ceil, and there is only one item left.
Removed allSlotsFilled as it gives a premature filled value. For instance, if your inventory size is 128 and you have stored a total of 65 items. Even though it can hold 63 more of the same item, it is considered full. Removed the Math.ceil from the filled. As it was not giving the correct value when I tested with it. With the ceil I was getting a value like "0000000111111111" when there was only one item left. When "1111111101111111" is the number you get without ceil, and there is only one item left.