v1.14.1.5

This commit is contained in:
rockyhawk64 2020-12-07 22:49:22 +11:00
parent 7b59112ed4
commit e8c3d434cf
2 changed files with 2 additions and 3 deletions

View File

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

View File

@ -58,8 +58,7 @@ public class HotbarItemLoader {
if(tempFile.contains("open-with-item")){ if(tempFile.contains("open-with-item")){
ItemStack panelItem = plugin.itemCreate.makeItemFromConfig(Objects.requireNonNull(tempFile.getConfigurationSection("open-with-item")), p, false, true); ItemStack panelItem = plugin.itemCreate.makeItemFromConfig(Objects.requireNonNull(tempFile.getConfigurationSection("open-with-item")), p, false, true);
if(invItem != null && panelItem != null) { if(invItem != null && panelItem != null) {
panelItem.setAmount(1); panelItem.setAmount(invItem.getAmount());
invItem.setAmount(1);
}else{ }else{
return false; return false;
} }