mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-01 00:10:40 +01:00
Fixed glass panes in header not having an "empty" name
Relates to https://github.com/BentoBoxWorld/BentoBox/issues/1344
This commit is contained in:
parent
32e174daed
commit
805b376de3
@ -127,7 +127,7 @@ public class TabbedPanel extends Panel implements PanelListener {
|
|||||||
private void setupHeader(Tab tab, TreeMap<Integer, PanelItem> items) {
|
private void setupHeader(Tab tab, TreeMap<Integer, PanelItem> items) {
|
||||||
// Set up top
|
// Set up top
|
||||||
for (int i = 0; i < 9; i++) {
|
for (int i = 0; i < 9; i++) {
|
||||||
items.put(i, new PanelItemBuilder().icon(Material.LIGHT_BLUE_STAINED_GLASS_PANE).name("").build());
|
items.put(i, new PanelItemBuilder().icon(Material.LIGHT_BLUE_STAINED_GLASS_PANE).name(" ").build());
|
||||||
}
|
}
|
||||||
// Add icons
|
// Add icons
|
||||||
for (Entry<Integer, Tab> tabPanel : tpb.getTabs().entrySet()) {
|
for (Entry<Integer, Tab> tabPanel : tpb.getTabs().entrySet()) {
|
||||||
@ -143,7 +143,6 @@ public class TabbedPanel extends Panel implements PanelListener {
|
|||||||
}
|
}
|
||||||
// Add any subsidiary icons
|
// Add any subsidiary icons
|
||||||
tab.getTabIcons().forEach(items::put);
|
tab.getTabIcons().forEach(items::put);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -198,5 +197,4 @@ public class TabbedPanel extends Panel implements PanelListener {
|
|||||||
public void setActiveTab(int activeTab) {
|
public void setActiveTab(int activeTab) {
|
||||||
this.activeTab = activeTab;
|
this.activeTab = activeTab;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user