Lua Docs Inventory.getbar - misleading description
Posted: Wed Feb 14, 2018 2:27 am
Assuming indexes in lua start from 1.
When I called setbar(1) it set 1 slot free and others locked. Which means that when I call getbar() it will return 1 but red area will actually start from index 2. So getbar() returns the index before the red area starts.getbar() → uint
Get the current bar. This is the index at which the red area starts.