Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
3 tasks done
DJcrafter5606 opened this issue Dec 22, 2023 · 2 comments
Open
3 tasks done
Assignees
Labels
bug Something isn't working

Comments

@DJcrafter5606
Copy link

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

  • 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).
@DJcrafter5606 DJcrafter5606 added the bug Something isn't working label Dec 22, 2023
@WolfyScript
Copy link
Owner

WolfyScript commented Jan 6, 2024

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

@WolfyScript WolfyScript mentioned this issue Jan 6, 2024
3 tasks
@SoraShiunin
Copy link

SoraShiunin commented Jan 6, 2024

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.

Minecraft_.1.20.4.-.Multiplayer.3rd-party.Server.2024-01-06.18-46-15.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants