WolfyScript / CustomCrafting

Spigot based plugin to create your own custom Recipes & Items. Designed to be easy to use with in-game GUI and tons of configuration possibilities.
https://modrinth.com/plugin/customcrafting
GNU General Public License v3.0
116 stars 35 forks source link

Task #4420399 for CustomCrafting v4.16.8.5 generated an exception #344

Open DJcrafter5606 opened 8 months ago

DJcrafter5606 commented 8 months ago

What happened?

Custom Crafting grid doesn't let ItemEdit items on the grid, those items just dissapear and this error appears. It seems it has to do with MythicMob custom item creation.

How can the bug be reproduced?

Put unstackable items on the custom crafting grid to create a new craft or an ItemEdit created item

Expected Behaviour?

Let you create a new craft

Plugin version

Custom Crafting 4.16.8.5 // WolfyUtilies 4.16.15-beta5

Server software

Paper 1.19.3

Relevant log output

[CustomCrafting] Task #4468887 for CustomCrafting v4.16.8.5 generated an exception
java.lang.NullPointerException: Cannot invoke "org.bukkit.inventory.ItemStack.setAmount(int)" because "stack" is null
        at me.wolfyscript.utilities.compatibility.plugins.mythicmobs.MythicMobsStackIdentifier.stack(MythicMobsStackIdentifier.java:34) ~[wolfyutils-spigot-4.16.15-beta.5.jar:?]
        at me.wolfyscript.utilities.api.inventory.custom_items.CustomItem.getItemStack(CustomItem.java:695) ~[wolfyutils-spigot-4.16.15-beta.5.jar:?]
        at me.wolfyscript.utilities.api.inventory.custom_items.CustomItem.<init>(CustomItem.java:185) ~[wolfyutils-spigot-4.16.15-beta.5.jar:?]
        at me.wolfyscript.utilities.api.inventory.custom_items.CustomItem.getReferenceByItemStack(CustomItem.java:367) ~[wolfyutils-spigot-4.16.15-beta.5.jar:?]
        at me.wolfyscript.customcrafting.gui.recipe_creator.ButtonRecipeIngredient.lambda$new$1(ButtonRecipeIngredient.java:59) ~[customcrafting-spigot-4.16.8.5.jar:?]
        at me.wolfyscript.utilities.api.inventory.gui.button.buttons.ActionButton.postExecute(ActionButton.java:145) ~[wolfyutils-spigot-4.16.15-beta.5.jar:?]
        at me.wolfyscript.utilities.api.inventory.gui.button.buttons.ItemInputButton.postExecute(ItemInputButton.java:98) ~[wolfyutils-spigot-4.16.15-beta.5.jar:?]
        at me.wolfyscript.utilities.api.inventory.gui.GuiUpdate.lambda$postExecuteButtons$0(GuiUpdate.java:202) ~[wolfyutils-spigot-4.16.15-beta.5.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.5.jar:?]
        at me.wolfyscript.utilities.api.inventory.gui.GuiWindow.lambda$update$0(GuiWindow.java:266) ~[wolfyutils-spigot-4.16.15-beta.5.jar:?]
        at org.bukkit.craftbukkit.v1_19_R2.scheduler.CraftTask.run(CraftTask.java:101) ~[paper-1.19.3.jar:git-Paper-448]
        at org.bukkit.craftbukkit.v1_19_R2.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:483) ~[paper-1.19.3.jar:git-Paper-448]
        at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1473) ~[paper-1.19.3.jar:git-Paper-448]
        at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:447) ~[paper-1.19.3.jar:git-Paper-448]
        at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1397) ~[paper-1.19.3.jar:git-Paper-448]
        at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1173) ~[paper-1.19.3.jar:git-Paper-448]
        at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:316) ~[paper-1.19.3.jar:git-Paper-448]
        at java.lang.Thread.run(Thread.java:833) ~[?:?]

Submit issue

WolfyScript commented 7 months ago

I uploaded a new version of WolfyUtils. v4.16.15-beta.6 on Modrinth that should fix this issue.

SoraShiunin commented 7 months ago

I uploaded a new version of WolfyUtils. v4.16.15-beta.6 on Modrinth that should fix this issue.

I'm having the same issue with Custom/mmoitems items disappearing, these types of items also disappeared from all my recipes T_T. Im on paper 1.20.4 and just tried that wolfyutils build but issue persists. No error in console that I could find. Edit: Normal minecraft items work fine.

https://github.com/WolfyScript/CustomCrafting/assets/23641964/d8541c1f-7c6d-4a4a-89c9-77185c09e9a0