Fixed weird stained glass pane display in SettingsPanel

This commit is contained in:
Florian CUNY 2018-08-31 21:09:01 +02:00
parent ea1fea66ff
commit 279dc6fbd8

View File

@ -65,8 +65,10 @@ public class SettingsPanel {
slot += 2; slot += 2;
} }
while(panelBuilder.nextSlot() < 9) { for (int i = 0; i < 9; i++) {
panelBuilder.item(new PanelItemBuilder().icon(new ItemStack(Material.LIGHT_BLUE_STAINED_GLASS_PANE, 1)).build()); if (!panelBuilder.slotOccupied(i)) {
panelBuilder.item(new PanelItemBuilder().icon(Material.LIGHT_GRAY_STAINED_GLASS_PANE).name("").build());
}
} }
} }
} }