forked from Upstream/CommandPanels
v1.14.1.5
This commit is contained in:
parent
7b59112ed4
commit
e8c3d434cf
@ -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
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user