-
Notifications
You must be signed in to change notification settings - Fork 19
CatServer compatibility #179
Comments
手持剑时右键附魔台后台报错: 打开附魔GUI将剑放入时的报错,剑无法放入: [11:23:56] [Server thread/ERROR]: Could not pass event InventoryClickEvent to EnchantmentsEnhance v7.9.2 空手右键附魔台或者使用指令打开GUI以及尝试放入非武器物品时不会报错(当然也放不进去) |
有办法解决吗QAQ |
LDK 目前没办法,因为 CatServer 这个服务端的 patcher 补丁修改了很多 NMS 内容。看 @25 吧,如果他想有兼容 CatServer 的打算的话,我看看怎么解决。目前真的没办法。。。 |
看到这个报错我还以为是和#178 一样的问题。
如果是NMS被魔改那么并 |
是的,这个异常有点迷惑性,其实是 |
等一下我给你反编译一下 CatServer 服务端的这个字段属性,我找一下服务端文件。 |
辛苦了!我正在尝试debug #178 |
[21:26:35] [Server thread/INFO]: Fearr issued server command: /enhance menu
[21:26:37] [Server thread/ERROR]: Could not pass event InventoryClickEvent to EnchantmentsEnhance v7.9.3
org.bukkit.event.EventException: null
at org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:69) ~[EventExecutor$2.class:git-CatServerAsync-1.12.2-e23e25a]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[RegisteredListener.class:git-CatServerAsync-1.12.2-e23e25a]
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:504) [SimplePluginManager.class:git-CatServerAsync-1.12.2-e23e25a]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:489) [SimplePluginManager.class:git-CatServerAsync-1.12.2-e23e25a]
at net.minecraft.network.NetHandlerPlayServer.func_147351_a(NetHandlerPlayServer.java:2113) [pa.class:?]
at net.minecraft.network.play.client.CPacketClickWindow.func_148833_a(CPacketClickWindow.java:38) [lf.class:?]
at net.minecraft.network.play.client.CPacketClickWindow.func_148833_a(CPacketClickWindow.java:12) [lf.class:?]
at net.minecraft.network.PacketThreadUtil$1.run(SourceFile:13) [hv$1.class:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_222]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_222]
at net.minecraft.util.Util.func_181617_a(Util.java:50) [h.class:?]
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:842) [MinecraftServer.class:?]
at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:473) [nz.class:?]
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:779) [MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:633) [MinecraftServer.class:?]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_222]
Caused by: java.util.NoSuchElementException: List is empty.
at kotlin.collections.CollectionsKt___CollectionsKt.first(_Collections.kt:196) ~[?:?]
at com.lgou2w.ldk.reflect.FuzzyReflectMatcher.result(FuzzyReflectMatcher.kt:176) ~[?:?]
at com.lgou2w.ldk.reflect.FuzzyReflectFieldMatcher.resultAccessorAs(FuzzyReflectFieldMatcher.kt:128) ~[?:?]
at com.lgou2w.ldk.reflect.FuzzyReflectFieldMatcher.resultAccessor(FuzzyReflectFieldMatcher.kt:115) ~[?:?]
at com.lgou2w.ldk.bukkit.item.ItemFactory$FIELD_ITEMSTACK_TAG$2.invoke(ItemFactory.kt:65) ~[?:?]
at com.lgou2w.ldk.bukkit.item.ItemFactory$FIELD_ITEMSTACK_TAG$2.invoke(ItemFactory.kt:47) ~[?:?]
at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74) ~[?:?]
at com.lgou2w.ldk.bukkit.item.ItemFactory.getFIELD_ITEMSTACK_TAG(ItemFactory.kt) ~[?:?]
at com.lgou2w.ldk.bukkit.item.ItemFactory.readTag(ItemFactory.kt:200) ~[?:?]
at com.lgou2w.ldk.bukkit.item.ItemFactory.readTagSafe(ItemFactory.kt:178) ~[?:?]
at org.pixeltime.enchantmentsenhance.manager.ItemManager.getItemEnchantLevel(ItemManager.java:90) ~[?:?]
at org.pixeltime.enchantmentsenhance.event.Enhance.getValidationOfItem(Enhance.java:83) ~[?:?]
at org.pixeltime.enchantmentsenhance.gui.menu.handlers.MenuHandler.onClick(MenuHandler.java:38) ~[?:?]
at catserver.server.executor.asm.generated.GeneratedEventExecutor25.execute(Unknown Source) ~[?:?]
at org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:67) ~[EventExecutor$2.class:git-CatServerAsync-1.12.2-e23e25a]
... 15 more
The text was updated successfully, but these errors were encountered: