WolfyScript/CustomCrafting

The ItemCreator have mistake!

Closed this issue · 1 comments

What happened?

If I want to edit my tool or can be change the unbreakable items will stuck !
image
And I got another bug, When I want to take out the item from the Editor will copy a item in my invntory and stuck the item in editor !
image

How can the bug be reproduced?

Just do what I do :D

Expected Behaviour?

Just can be change to breakable item and don't stuck and copy my items!

Plugin version

customcrafting-spigot-4.16.9-beta.3,wolfyutils-spigot-4.16.15-beta.4

Server software

Spigot 1.20.1

Relevant log output

[04:22:07 WARN]: [CustomCrafting] Task #152083 for CustomCrafting v4.16.9-beta.2 generated an exception
java.lang.NullPointerException: Cannot invoke "org.bukkit.inventory.ItemStack.getAmount()" because "stack" is null
at com.wolfyscript.utilities.bukkit.registry.RegistryStackIdentifierParsers.parseFrom(RegistryStackIdentifierParsers.java:60) ~[wolfyutils-spigot-4.16.15-beta.4.jar:?]
at me.wolfyscript.customcrafting.gui.item_creator.MenuItemCreator.lambda$onInit$2(MenuItemCreator.java:116) ~[customcrafting-spigot-4.16.9-beta.3.jar:?]
at me.wolfyscript.utilities.api.inventory.gui.button.buttons.ActionButton.postExecute(ActionButton.java:145) ~[wolfyutils-spigot-4.16.15-beta.4.jar:?]
at me.wolfyscript.utilities.api.inventory.gui.button.buttons.ItemInputButton.postExecute(ItemInputButton.java:98) ~[wolfyutils-spigot-4.16.15-beta.4.jar:?]
at me.wolfyscript.utilities.api.inventory.gui.GuiUpdate.lambda$postExecuteButtons$0(GuiUpdate.java:202) ~[wolfyutils-spigot-4.16.15-beta.4.jar:?]
at java.util.HashMap.forEach(HashMap.java:1421) ~[?:?]
at me.wolfyscript.utilities.api.inventory.gui.GuiUpdate.postExecuteButtons(GuiUpdate.java:200) ~[wolfyutils-spigot-4.16.15-beta.4.jar:?]
at me.wolfyscript.utilities.api.inventory.gui.GuiWindow.lambda$update$0(GuiWindow.java:266) ~[wolfyutils-spigot-4.16.15-beta.4.jar:?]
at org.bukkit.craftbukkit.v1_20_R1.scheduler.CraftTask.run(CraftTask.java:101) ~[paper-1.20.1.jar:git-Paper-196]
at org.bukkit.craftbukkit.v1_20_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:480) ~[paper-1.20.1.jar:git-Paper-196]
at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1479) ~[paper-1.20.1.jar:git-Paper-196]
at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:446) ~[paper-1.20.1.jar:git-Paper-196]
at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1393) ~[paper-1.20.1.jar:git-Paper-196]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1170) ~[paper-1.20.1.jar:git-Paper-196]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:317) ~[paper-1.20.1.jar:git-Paper-196]
at java.lang.Thread.run(Thread.java:833) ~[?:?]

Submit issue

  • read the Wiki and especially the FaQ, and made sure there is no fix to your issue,
  • searched for and ensured there isn't already an open issue regarding this,
  • are running the latest version of your server software (Spigot, Paper, etc.), and plugins (WolfyUtilities, CustomCrafting).

The ItemCreator is completely broken in the beta right now. I am working on a new Item Creator that works with the new beta.