When shrinking the players inventory, the players selected slot does not update.
For example, say you have an inventory size of 9, and the player has slot 8 selected.
Upon shrinking the inventory to anything lower, the player's selected slot will not get updated, they will stay selecting slot 8 despite it not existing.
You can still change your selected slot at this point. Moving it up will wrap it around to slot 1.
Moving it down will have it scroll to slot 7 then 6 etc. It doesn't matter if you only have 1 slot, it will still scroll down one at a time.
When shrinking the players inventory, the players selected slot does not update.
For example, say you have an inventory size of 9, and the player has slot 8 selected.
Upon shrinking the inventory to anything lower, the player's selected slot will not get updated, they will stay selecting slot 8 despite it not existing.
You can still change your selected slot at this point. Moving it up will wrap it around to slot 1.
Moving it down will have it scroll to slot 7 then 6 etc. It doesn't matter if you only have 1 slot, it will still scroll down one at a time.