mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-27 21:27:44 +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()) {
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user