This commit is contained in:
rockyhawk64 2022-05-05 12:25:25 +10:00
parent 082e6cd924
commit a97337be43
4 changed files with 7 additions and 5 deletions

View File

@ -1,4 +1,4 @@
version: 3.17.4.2 version: 3.17.4.3
main: me.rockyhawk.commandpanels.CommandPanels main: me.rockyhawk.commandpanels.CommandPanels
name: CommandPanels name: CommandPanels
author: RockyHawk author: RockyHawk

View File

@ -31,8 +31,10 @@ public class UtilsChestSortEvent implements Listener {
//If the ChestSort plugin triggers an event //If the ChestSort plugin triggers an event
if(e.getInventory().getType() == InventoryType.PLAYER){ if(e.getInventory().getType() == InventoryType.PLAYER){
for(int slot : plugin.hotbar.stationaryItems.get(e.getPlayer().getUniqueId()).list.keySet()){ for(int slot : plugin.hotbar.stationaryItems.get(e.getPlayer().getUniqueId()).list.keySet()){
if(e.getInventory().getItem(slot) != null) {
e.setUnmovable(slot); e.setUnmovable(slot);
} }
} }
} }
}
} }

View File

@ -103,7 +103,7 @@ public class Updater implements Listener {
//the pluginFileName can only be obtained from the main class //the pluginFileName can only be obtained from the main class
public void autoUpdatePlugin(String pluginFileName){ public void autoUpdatePlugin(String pluginFileName){
if (Objects.requireNonNull(plugin.config.getString("updater.update-checks")).equalsIgnoreCase("true")) { if (Objects.requireNonNull(plugin.config.getString("updater.update-checks")).equalsIgnoreCase("false")) {
return; return;
} }