YufiriaMazenta / Craftorithm

Advanced recipe management system for minecraft server
https://yufiriamazenta.gitbook.io/craftorithm-wiki/
GNU General Public License v3.0
61 stars 4 forks source link

1.18.2无法正常创建带有Mod物品的合成表 #35

Closed Crossfield-ClassDestroyer closed 8 months ago

Crossfield-ClassDestroyer commented 8 months ago

Describe the bug | 描述你遇到的bug

在试图创建带有mod物品的无序合成表时出现问题,能正常进入GUI但无法点击确认创建按键,也无法正常创建自定义合成表,可以看见正常生成的同名配置文件,但游戏内无效

Steps to reproduce the bug | 复现此Bug的步骤

多次使用/craft create shapeless buyiron1指令创建名为buyiron1的自定义合成配方,但多次尝试仍无效果

Server version | 服务器版本

CatServer 1.18.2-6c3f5965 API 1.18.2-R0.1-snapshot Forge 40.2.4

Craftorithm Version | Craftorithm的版本

version 1.8.8-20240110

FULL server log | 完整服务器日志

latest.log

Other files, you can drag and drop them here to upload | 其他文件,你可以拖拽文件到这里上传

No response

Images | 相关图片

No response

Crossfield-ClassDestroyer commented 8 months ago

由于我的技术能力有限,英语也不好无法确认是服务端的问题还是插件存在bug所以希望来这里能寻求到想要的答案

YufiriaMazenta commented 8 months ago

我编写了一个测试版本,你可以试试能不能使用https://github.com/YufiriaMazenta/Craftorithm/releases/download/1.8.11-rc1/Craftorithm-1.8.11-rc1.jar

YufiriaMazenta commented 8 months ago

顺便还帮助我知道了另外一个bug,也顺便修了)

Crossfield-ClassDestroyer commented 8 months ago

latest.log 这可能是服务端的问题么 [23:32:43] [Server thread/INFO] [net.minecraft.server.network.ServerGamePacketListenerImpl]: VoidSnowFox issued server command: /craftorithm create shapeless [23:32:50] [Server thread/ERROR] [Minecraft]: Could not pass event InventoryClickEvent to Craftorithm v1.8.11-rc1-20240114 org.bukkit.event.EventException: null at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:319) ~[forge-1.18.2-40.2.4-universal.jar%23104!/:?] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[forge-1.18.2-40.2.4-universal.jar%23104!/:?] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:594) ~[forge-1.18.2-40.2.4-universal.jar%23104!/:?] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:578) ~[forge-1.18.2-40.2.4-universal.jar%23104!/:?] at net.minecraft.server.network.ServerGamePacketListenerImpl.m5914(ServerGamePacketListenerImpl.java:2146) ~[server-1.18.2-20220404.173914-srg.jar%2399!/:?] at net.minecraft.network.protocol.game.ServerboundContainerClickPacket.m5797(ServerboundContainerClickPacket.java:56) ~[server-1.18.2-20220404.173914-srg.jar%2399!/:?] at net.minecraft.network.protocol.game.ServerboundContainerClickPacket.m5797(ServerboundContainerClickPacket.java:12) ~[server-1.18.2-20220404.173914-srg.jar%2399!/:?] at net.minecraft.network.protocol.PacketUtils.m131356(PacketUtils.java:25) ~[server-1.18.2-20220404.173914-srg.jar%2399!/:?] at net.minecraft.server.TickTask.run(TickTask.java:18) ~[server-1.18.2-20220404.173914-srg.jar%2399!/:?] at net.minecraft.util.thread.BlockableEventLoop.m6367(BlockableEventLoop.java:157) ~[server-1.18.2-20220404.173914-srg.jar%2399!/:?] at net.minecraft.util.thread.ReentrantBlockableEventLoop.m6367(ReentrantBlockableEventLoop.java:23) ~[server-1.18.2-20220404.173914-srg.jar%2399!/:?] at net.minecraft.server.MinecraftServer.m6367(MinecraftServer.java:1068) ~[server-1.18.2-20220404.173914-srg.jar%2399!/:?] at net.minecraft.server.MinecraftServer.m6367(MinecraftServer.java:173) ~[server-1.18.2-20220404.173914-srg.jar%2399!/:?] at net.minecraft.util.thread.BlockableEventLoop.m7245(BlockableEventLoop.java:131) ~[server-1.18.2-20220404.173914-srg.jar%2399!/:?] at net.minecraft.server.MinecraftServer.m129961(MinecraftServer.java:1051) ~[server-1.18.2-20220404.173914-srg.jar%2399!/:?] at net.minecraft.server.MinecraftServer.m7245(MinecraftServer.java:1045) ~[server-1.18.2-20220404.173914-srg.jar%2399!/:?] at net.minecraft.util.thread.BlockableEventLoop.m18701(BlockableEventLoop.java:140) ~[server-1.18.2-20220404.173914-srg.jar%2399!/:?] at net.minecraft.server.MinecraftServer.m130012(MinecraftServer.java:1031) ~[server-1.18.2-20220404.173914-srg.jar%2399!/:?] at net.minecraft.server.MinecraftServer.m130011(MinecraftServer.java:956) ~[server-1.18.2-20220404.173914-srg.jar%2399!/:?] at net.minecraft.server.MinecraftServer.m177918(MinecraftServer.java:312) ~[server-1.18.2-20220404.173914-srg.jar%2399!/:?] at java.lang.Thread.run(Thread.java:833) [?:?] Caused by: java.lang.IllegalArgumentException: Can not found item chinjufumod:item_workorder at com.github.yufiriamazenta.craftorithm.item.ItemManager.matchVanillaItem(ItemManager.java:126) ~[?:?] at com.github.yufiriamazenta.craftorithm.item.ItemManager.matchItem(ItemManager.java:79) ~[?:?] at com.github.yufiriamazenta.craftorithm.recipe.RecipeFactory.getRecipeChoice(RecipeFactory.java:408) ~[?:?] at com.github.yufiriamazenta.craftorithm.recipe.RecipeFactory.newShapelessRecipe(RecipeFactory.java:116) ~[?:?] at com.github.yufiriamazenta.craftorithm.recipe.RecipeFactory.newRecipeRegistry(RecipeFactory.java:72) ~[?:?] at com.github.yufiriamazenta.craftorithm.menu.creator.RecipeCreator.regRecipeGroup(RecipeCreator.java:112) ~[?:?] at com.github.yufiriamazenta.craftorithm.menu.creator.CraftingRecipeCreator.lambda$new$1(CraftingRecipeCreator.java:113) ~[?:?] at com.github.yufiriamazenta.craftorithm.crypticlib.ui.display.Icon.onClick(Icon.java:108) ~[?:?] at com.github.yufiriamazenta.craftorithm.crypticlib.ui.menu.StoredMenu.onClick(StoredMenu.java:52) ~[?:?] at com.github.yufiriamazenta.craftorithm.crypticlib.ui.handler.MenuHandler.onClickMenu(MenuHandler.java:29) ~[?:?] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?] at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:315) ~[forge-1.18.2-40.2.4-universal.jar%23104!/:?] ... 20 more [23:32:51] [Server thread/ERROR] [Minecraft]: Could not pass event InventoryClickEvent to Craftorithm v1.8.11-rc1-20240114 org.bukkit.event.EventException: null at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:319) ~[forge-1.18.2-40.2.4-universal.jar%23104!/:?] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[forge-1.18.2-40.2.4-universal.jar%23104!/:?] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:594) ~[forge-1.18.2-40.2.4-universal.jar%23104!/:?] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:578) ~[forge-1.18.2-40.2.4-universal.jar%23104!/:?] at net.minecraft.server.network.ServerGamePacketListenerImpl.m5914(ServerGamePacketListenerImpl.java:2146) ~[server-1.18.2-20220404.173914-srg.jar%2399!/:?] at net.minecraft.network.protocol.game.ServerboundContainerClickPacket.m5797(ServerboundContainerClickPacket.java:56) ~[server-1.18.2-20220404.173914-srg.jar%2399!/:?] at net.minecraft.network.protocol.game.ServerboundContainerClickPacket.m5797(ServerboundContainerClickPacket.java:12) ~[server-1.18.2-20220404.173914-srg.jar%2399!/:?] at net.minecraft.network.protocol.PacketUtils.m131356(PacketUtils.java:25) ~[server-1.18.2-20220404.173914-srg.jar%2399!/:?] at net.minecraft.server.TickTask.run(TickTask.java:18) ~[server-1.18.2-20220404.173914-srg.jar%2399!/:?] at net.minecraft.util.thread.BlockableEventLoop.m6367(BlockableEventLoop.java:157) ~[server-1.18.2-20220404.173914-srg.jar%2399!/:?] at net.minecraft.util.thread.ReentrantBlockableEventLoop.m6367(ReentrantBlockableEventLoop.java:23) ~[server-1.18.2-20220404.173914-srg.jar%2399!/:?] at net.minecraft.server.MinecraftServer.m6367(MinecraftServer.java:1068) ~[server-1.18.2-20220404.173914-srg.jar%2399!/:?] at net.minecraft.server.MinecraftServer.m6367(MinecraftServer.java:173) ~[server-1.18.2-20220404.173914-srg.jar%2399!/:?] at net.minecraft.util.thread.BlockableEventLoop.m7245(BlockableEventLoop.java:131) ~[server-1.18.2-20220404.173914-srg.jar%2399!/:?] at net.minecraft.server.MinecraftServer.m129961(MinecraftServer.java:1051) ~[server-1.18.2-20220404.173914-srg.jar%2399!/:?] at net.minecraft.server.MinecraftServer.m7245(MinecraftServer.java:1045) ~[server-1.18.2-20220404.173914-srg.jar%2399!/:?] at net.minecraft.util.thread.BlockableEventLoop.m18701(BlockableEventLoop.java:140) ~[server-1.18.2-20220404.173914-srg.jar%2399!/:?] at net.minecraft.server.MinecraftServer.m130012(MinecraftServer.java:1031) ~[server-1.18.2-20220404.173914-srg.jar%2399!/:?] at net.minecraft.server.MinecraftServer.m130011(MinecraftServer.java:956) ~[server-1.18.2-20220404.173914-srg.jar%2399!/:?] at net.minecraft.server.MinecraftServer.m177918(MinecraftServer.java:312) ~[server-1.18.2-20220404.173914-srg.jar%2399!/:?] at java.lang.Thread.run(Thread.java:833) [?:?] Caused by: java.lang.IllegalArgumentException: Can not found item chinjufumod:item_workorder at com.github.yufiriamazenta.craftorithm.item.ItemManager.matchVanillaItem(ItemManager.java:126) ~[?:?] at com.github.yufiriamazenta.craftorithm.item.ItemManager.matchItem(ItemManager.java:79) ~[?:?] at com.github.yufiriamazenta.craftorithm.recipe.RecipeFactory.getRecipeChoice(RecipeFactory.java:408) ~[?:?] at com.github.yufiriamazenta.craftorithm.recipe.RecipeFactory.newShapelessRecipe(RecipeFactory.java:116) ~[?:?] at com.github.yufiriamazenta.craftorithm.recipe.RecipeFactory.newRecipeRegistry(RecipeFactory.java:72) ~[?:?] at com.github.yufiriamazenta.craftorithm.menu.creator.RecipeCreator.regRecipeGroup(RecipeCreator.java:112) ~[?:?] at com.github.yufiriamazenta.craftorithm.menu.creator.CraftingRecipeCreator.lambda$new$1(CraftingRecipeCreator.java:113) ~[?:?] at com.github.yufiriamazenta.craftorithm.crypticlib.ui.display.Icon.onClick(Icon.java:108) ~[?:?] at com.github.yufiriamazenta.craftorithm.crypticlib.ui.menu.StoredMenu.onClick(StoredMenu.java:52) ~[?:?] at com.github.yufiriamazenta.craftorithm.crypticlib.ui.handler.MenuHandler.onClickMenu(MenuHandler.java:29) ~[?:?] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?] at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:315) ~[forge-1.18.2-40.2.4-universal.jar%23104!/:?] ... 20 more

Crossfield-ClassDestroyer commented 8 months ago

神奇的是我在1.16.5的服务器上没有这种问题当时用的是1.7.4版本的插件,但考虑到两个版本差距比较大.........可能这个经历没什么参考价值

YufiriaMazenta commented 8 months ago

获取不到这个物品,有点奇怪,可能是catserver的物品获取不太一样

YufiriaMazenta commented 8 months ago

神奇的是我在1.16.5的服务器上没有这种问题当时用的是1.7.4版本的插件,但考虑到两个版本差距比较大.........可能这个经历没什么参考价值

你可以试试1.7.4能不能在1.18.2服务器上使用

Crossfield-ClassDestroyer commented 8 months ago

试过了,在1.18.2上面也是这个毛病 以及JEI会对这个有影响么

YufiriaMazenta commented 8 months ago

试过了,在1.18.2上面也是这个毛病 以及JEI会对这个有影响么

应该是没有影响?我也不清楚,我在查看catserver的相关资料看是什么原因

YufiriaMazenta commented 8 months ago

已修复,请测试此版本https://github.com/YufiriaMazenta/Craftorithm/releases/download/1.8.11-rc2/Craftorithm-1.8.11-rc2.jar 若无问题将发布1.8.11正式版更新

Crossfield-ClassDestroyer commented 8 months ago

QQ截图20240115103930 感谢您花费宝贵的时间来处理这个问题,测试已完成,目前已知问题已解决。 创建正常,识别正常,运行正常。