mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-12-02 15:43:23 +01:00
Fixes bug with nextSlot() not taking care of size if it was set
This commit is contained in:
parent
eb7a95dd67
commit
4a86784535
@ -73,7 +73,7 @@ public class PanelBuilder {
|
|||||||
if (items.isEmpty()) {
|
if (items.isEmpty()) {
|
||||||
return 0;
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
for (int i = 0; i < 54; i++) {
|
for (int i = 0; i < (size != 0 ? size : 54); i++) {
|
||||||
if (!slotOccupied(i)) return i;
|
if (!slotOccupied(i)) return i;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user