diff --git a/resource/plugin.yml b/resource/plugin.yml index b7e1656..c633d87 100644 --- a/resource/plugin.yml +++ b/resource/plugin.yml @@ -1,4 +1,4 @@ -version: 3.14.1.4 +version: 3.14.1.5 main: me.rockyhawk.commandpanels.CommandPanels name: CommandPanels author: RockyHawk diff --git a/src/me/rockyhawk/commandpanels/openwithitem/HotbarItemLoader.java b/src/me/rockyhawk/commandpanels/openwithitem/HotbarItemLoader.java index 681e5eb..e5c8ee8 100644 --- a/src/me/rockyhawk/commandpanels/openwithitem/HotbarItemLoader.java +++ b/src/me/rockyhawk/commandpanels/openwithitem/HotbarItemLoader.java @@ -58,8 +58,7 @@ public class HotbarItemLoader { if(tempFile.contains("open-with-item")){ ItemStack panelItem = plugin.itemCreate.makeItemFromConfig(Objects.requireNonNull(tempFile.getConfigurationSection("open-with-item")), p, false, true); if(invItem != null && panelItem != null) { - panelItem.setAmount(1); - invItem.setAmount(1); + panelItem.setAmount(invItem.getAmount()); }else{ return false; }