From e8c3d434cfd177502104e4ecdc0f05cffb251ef3 Mon Sep 17 00:00:00 2001 From: rockyhawk64 Date: Mon, 7 Dec 2020 22:49:22 +1100 Subject: [PATCH] v1.14.1.5 --- resource/plugin.yml | 2 +- .../rockyhawk/commandpanels/openwithitem/HotbarItemLoader.java | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) 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; }