mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-10 21:11:04 +01:00
Removed redundant code in TabbedPanel
This commit is contained in:
parent
83c0713ddf
commit
0126c44a06
@ -137,9 +137,7 @@ public class TabbedPanel extends Panel implements PanelListener {
|
||||
// Add icons
|
||||
for (Entry<Integer, Tab> tabPanel : tpb.getTabs().entrySet()) {
|
||||
// Add the icon to the top row
|
||||
if (tabPanel.getValue().getPermission().isEmpty()
|
||||
|| tpb.getUser().hasPermission(tabPanel.getValue().getPermission())
|
||||
|| tpb.getUser().isOp()) {
|
||||
if (tpb.getUser().hasPermission(tabPanel.getValue().getPermission())) {
|
||||
PanelItem activeIcon = tabPanel.getValue().getIcon();
|
||||
// Set the glow of the active tab
|
||||
activeIcon.setGlow(tabPanel.getValue().equals(tab));
|
||||
|
Loading…
Reference in New Issue
Block a user