File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/main/java/me/eccentric_nz/TARDIS/desktop Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -115,9 +115,6 @@ public void onThemeMenuClick(InventoryClickEvent event) {
115115 }
116116 // get material of selected console
117117 String perm = Consoles .schematicFor (choice .getType ()).getPermission ();
118- if (!TARDISPermission .hasPermission (player , "tardis." + perm )) {
119- return ;
120- }
121118 // remember the upgrade choice
122119 Schematic schematic = Consoles .schematicFor (perm );
123120 UUID uuid = player .getUniqueId ();
@@ -147,6 +144,9 @@ public void onThemeMenuClick(InventoryClickEvent event) {
147144 close (player );
148145 }
149146 } else {
147+ if (!TARDISPermission .hasPermission (player , "tardis." + perm )) {
148+ return ;
149+ }
150150 TARDISUpgradeData tud = plugin .getTrackerKeeper ().getUpgrades ().get (uuid );
151151 int upgrade = plugin .getArtronConfig ().getInt ("upgrades." + perm );
152152 int needed = (tud .getPrevious ().getPermission ().equals (schematic .getPermission ())) ? upgrade / 2 : upgrade ;
You can’t perform that action at this time.
0 commit comments