v1.2.0: fixed a crash caused by flipped toolbar

This commit is contained in:
Evan Debenham 2022-03-22 15:11:49 -04:00
parent 452dda7fc4
commit 21739af1cc

View File

@ -323,7 +323,7 @@ public class Toolbar extends Component {
btnSearch.setPos( (right - btnSearch.right()), y); btnSearch.setPos( (right - btnSearch.right()), y);
btnInventory.setPos( (right - btnInventory.right()), y); btnInventory.setPos( (right - btnInventory.right()), y);
for(int i = 0; i <= btnQuick.length; i++) { for(int i = 0; i < btnQuick.length; i++) {
btnQuick[i].setPos( right - btnQuick[i].right(), y+2); btnQuick[i].setPos( right - btnQuick[i].right(), y+2);
} }