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
114 stars 36 forks source link

CAnnot enable disabled recipe #282

Closed Maximon1 closed 1 year ago

Maximon1 commented 1 year ago

What happened?

cannot re-enable disabled custom recipes

How can the bug be reproduced?

i loaded the server up. ./cc looked throuh my custom recipes, accedentaly disabled one. now cant enable again without stopping the server en then remove it from disable list.

Expected Behaviour?

the recipe should be re-enbaled

Plugin version

customcrafting-spigot-4.16.8-beta.1

Server software

paper-1.20.1-43

Relevant log output

8:09:46] [Server thread/INFO]: [MythicMobs] no mapping
[18:09:46] [Server thread/ERROR]: Could not pass event InventoryClickEvent to WolfyUtilities v4.16.12-beta.1
java.lang.IllegalStateException: Duplicate recipe ignored with ID customcrafting:cc_placeholder.bad/dhoe1
    at net.minecraft.world.item.crafting.RecipeManager.addRecipe(RecipeManager.java:93) ~[?:?]
    at org.bukkit.craftbukkit.v1_20_R1.inventory.CraftShapedRecipe.addToCraftingManager(CraftShapedRecipe.java:59) ~[paper-1.20.1.jar:git-Paper-43]
    at org.bukkit.craftbukkit.v1_20_R1.CraftServer.addRecipe(CraftServer.java:1518) ~[paper-1.20.1.jar:git-Paper-43]
    at org.bukkit.Bukkit.addRecipe(Bukkit.java:1012) ~[paper-api-1.20.1-R0.1-SNAPSHOT.jar:?]
    at me.wolfyscript.customcrafting.recipes.CraftingRecipeShaped.getVanillaRecipe(CraftingRecipeShaped.java:79) ~[customcrafting-spigot-4.16.8-beta.1.jar:?]
    at me.wolfyscript.customcrafting.recipes.CraftingRecipeShaped.getVanillaRecipe(CraftingRecipeShaped.java:41) ~[customcrafting-spigot-4.16.8-beta.1.jar:?]
    at me.wolfyscript.customcrafting.handlers.DisableRecipesHandler.enableRecipe(DisableRecipesHandler.java:111) ~[customcrafting-spigot-4.16.8-beta.1.jar:?]
    at me.wolfyscript.customcrafting.handlers.DisableRecipesHandler.toggleRecipe(DisableRecipesHandler.java:83) ~[customcrafting-spigot-4.16.8-beta.1.jar:?]
    at me.wolfyscript.customcrafting.gui.main_gui.ButtonContainerRecipeList.execute(ButtonContainerRecipeList.java:129) ~[customcrafting-spigot-4.16.8-beta.1.jar:?]
    at me.wolfyscript.utilities.api.inventory.gui.InventoryAPI.executeButton(InventoryAPI.java:284) ~[wolfyutils-spigot-4.16.12-beta.1.jar:?]
    at me.wolfyscript.utilities.api.inventory.gui.InventoryAPI.onClick(InventoryAPI.java:217) ~[wolfyutils-spigot-4.16.12-beta.1.jar:?]
    at me.wolfyscript.utilities.api.nms.inventory.GUIInventory.onClick(GUIInventory.java:51) ~[wolfyutils-spigot-4.16.12-beta.1.jar:?]
    at com.wolfyscript.utilities.bukkit.listeners.GUIInventoryListener.onInvClick(GUIInventoryListener.java:34) ~[wolfyutils-spigot-4.16.12-beta.1.jar:?]
    at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor41.execute(Unknown Source) ~[?:?]
    at org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:77) ~[paper-api-1.20.1-R0.1-SNAPSHOT.jar:?]
    at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:81) ~[paper-api-1.20.1-R0.1-SNAPSHOT.jar:git-Paper-43]
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[paper-api-1.20.1-R0.1-SNAPSHOT.jar:?]
    at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54) ~[paper-1.20.1.jar:git-Paper-43]
    at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:126) ~[paper-1.20.1.jar:git-Paper-43]
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:615) ~[paper-api-1.20.1-R0.1-SNAPSHOT.jar:?]
    at net.minecraft.server.network.ServerGamePacketListenerImpl.handleContainerClick(ServerGamePacketListenerImpl.java:3198) ~[?:?]
    at net.minecraft.network.protocol.game.ServerboundContainerClickPacket.handle(ServerboundContainerClickPacket.java:58) ~[?:?]
    at net.minecraft.network.protocol.game.ServerboundContainerClickPacket.handle(ServerboundContainerClickPacket.java:23) ~[?:?]
    at net.minecraft.network.protocol.PacketUtils.lambda$ensureRunningOnSameThread$0(PacketUtils.java:51) ~[?:?]
    at net.minecraft.server.TickTask.run(TickTask.java:18) ~[paper-1.20.1.jar:git-Paper-43]
    at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:153) ~[?:?]
    at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:24) ~[?:?]
    at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1339) ~[paper-1.20.1.jar:git-Paper-43]
    at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:197) ~[paper-1.20.1.jar:git-Paper-43]
    at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:126) ~[?:?]
    at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1316) ~[paper-1.20.1.jar:git-Paper-43]
    at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1309) ~[paper-1.20.1.jar:git-Paper-43]
    at net.minecraft.util.thread.BlockableEventLoop.managedBlock(BlockableEventLoop.java:136) ~[?:?]
    at net.minecraft.server.MinecraftServer.waitUntilNextTick(MinecraftServer.java:1287) ~[paper-1.20.1.jar:git-Paper-43]
    at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1175) ~[paper-1.20.1.jar:git-Paper-43]
    at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:318) ~[paper-1.20.1.jar:git-Paper-43]
    at java.lang.Thread.run(Thread.java:833) ~[?:?]

Submit issue