CreativeMD / LittleTiles

GNU Lesser General Public License v3.0
174 stars 53 forks source link

Fix to LittleStorage filled value #831

Closed Doc-1 closed 2 years ago

Doc-1 commented 2 years ago

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.