Fixes bug with nextSlot() not taking care of size if it was set

This commit is contained in:
Florian CUNY 2018-03-01 11:05:19 +01:00
parent eb7a95dd67
commit 4a86784535

View File

@ -73,7 +73,7 @@ public class PanelBuilder {
if (items.isEmpty()) {
return 0;
} else {
for (int i = 0; i < 54; i++) {
for (int i = 0; i < (size != 0 ? size : 54); i++) {
if (!slotOccupied(i)) return i;
}
}