-
Notifications
You must be signed in to change notification settings - Fork 19
NoSuchElementException #178
Comments
Caused by fixing #174 |
@25 See lgou2w/ldk#104 . Please update LDK to |
Or can wait for the stable version of |
Did not solve the issue |
Add sonatype snapshot repository to ensure the latest snapshot version! <!-- if you need use snapshot version, add sonatype repo -->
<repositories>
<repository>
<id>sonatype-repo</id>
<url>https://oss.sonatype.org/content/groups/public/</url>
</repository>
</repositories> E.g: https://oss.sonatype.org/content/groups/public/com/lgou2w/ldk-bukkit-nbt/0.2.0-SNAPSHOT/ This bug was fixed on Dec 27. Make sure that your project uses a snapshot version no less than this. |
And make sure that the runtime environment of Bukkit is this version of the LDK. |
|
Not sure what went wrong, but it still does not work. Have you pushed all the changes to the sonatype-repo as well? |
@25 这个问题怎么说呢,应该是这个服务端里面有多个 |
我测试的时候插件列表里只有EE,/pl 里也只有EE,所以可以保证是Shaded的LDK |
Spigot 1.15.1
|
等一下我编译一下看看 |
我试试在docker容器里构建结果会不会不同 |
最终的发布版本下载链接是谁提供构建的?如果不行的话就等待明天 LDK 0.2.0 的正式版,今天是今年的最后一天了呢。🤔 |
Solved! Built the project in docker and it works. That means I had issues with local maven repositories. |
[23:41:42] [Server thread/ERROR]: Could not pass event InventoryClickEvent to EnchantmentsEnhance v7.9.4
org.bukkit.event.EventException: null
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:320) ~[spigot.jar:git-Spigot-2ee05fe-d31f05f]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[spigot.jar:git-Spigot-2ee05fe-d31f05f]
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:529) ~[spigot.jar:git-Spigot-2ee05fe-d31f05f]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:514) ~[spigot.jar:git-Spigot-2ee05fe-d31f05f]
at net.minecraft.server.v1_15_R1.PlayerConnection.a(PlayerConnection.java:2147) ~[spigot.jar:git-Spigot-2ee05fe-d31f05f]
at net.minecraft.server.v1_15_R1.PacketPlayInWindowClick.a(SourceFile:32) ~[spigot.jar:git-Spigot-2ee05fe-d31f05f]
at net.minecraft.server.v1_15_R1.PacketPlayInWindowClick.a(SourceFile:10) ~[spigot.jar:git-Spigot-2ee05fe-d31f05f]
at net.minecraft.server.v1_15_R1.PlayerConnectionUtils.lambda$0(PlayerConnectionUtils.java:19) ~[spigot.jar:git-Spigot-2ee05fe-d31f05f]
at net.minecraft.server.v1_15_R1.TickTask.run(SourceFile:18) [spigot.jar:git-Spigot-2ee05fe-d31f05f]
at net.minecraft.server.v1_15_R1.IAsyncTaskHandler.executeTask(SourceFile:144) [spigot.jar:git-Spigot-2ee05fe-d31f05f]
at net.minecraft.server.v1_15_R1.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23) [spigot.jar:git-Spigot-2ee05fe-d31f05f]
at net.minecraft.server.v1_15_R1.IAsyncTaskHandler.executeNext(SourceFile:118) [spigot.jar:git-Spigot-2ee05fe-d31f05f]
at net.minecraft.server.v1_15_R1.MinecraftServer.aZ(MinecraftServer.java:917) [spigot.jar:git-Spigot-2ee05fe-d31f05f]
at net.minecraft.server.v1_15_R1.MinecraftServer.executeNext(MinecraftServer.java:910) [spigot.jar:git-Spigot-2ee05fe-d31f05f]
at net.minecraft.server.v1_15_R1.IAsyncTaskHandler.awaitTasks(SourceFile:127) [spigot.jar:git-Spigot-2ee05fe-d31f05f]
at net.minecraft.server.v1_15_R1.MinecraftServer.sleepForTick(MinecraftServer.java:894) [spigot.jar:git-Spigot-2ee05fe-d31f05f]
at net.minecraft.server.v1_15_R1.MinecraftServer.run(MinecraftServer.java:827) [spigot.jar:git-Spigot-2ee05fe-d31f05f]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_202]
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.FuzzyReflectMethodMatcher.resultAccessorAs(FuzzyReflectMethodMatcher.kt:94) ~[?:?]
at com.lgou2w.ldk.reflect.FuzzyReflectMethodMatcher.resultAccessor(FuzzyReflectMethodMatcher.kt:81) ~[?:?]
at com.lgou2w.ldk.bukkit.nbt.NBTFactory$METHOD_NBT_CREATE$2.invoke(NBTFactory.kt:75) ~[?:?]
at com.lgou2w.ldk.bukkit.nbt.NBTFactory$METHOD_NBT_CREATE$2.invoke(NBTFactory.kt:49) ~[?:?]
at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74) ~[?:?]
at com.lgou2w.ldk.bukkit.nbt.NBTFactory.getMETHOD_NBT_CREATE(NBTFactory.kt) ~[?:?]
at com.lgou2w.ldk.bukkit.nbt.NBTFactory.createInternal(NBTFactory.kt:199) ~[?:?]
at com.lgou2w.ldk.bukkit.nbt.NBTFactory.toNMS(NBTFactory.kt:189) ~[?:?]
at com.lgou2w.ldk.bukkit.nbt.NBTFactory.toNMS(NBTFactory.kt:172) ~[?:?]
at com.lgou2w.ldk.bukkit.item.ItemFactory.writeTag(ItemFactory.kt:325) ~[?:?]
at com.lgou2w.ldk.bukkit.item.ItemFactory.writeTag(ItemFactory.kt:316) ~[?:?]
at com.lgou2w.ldk.bukkit.item.ItemFactory.modifyTag(ItemFactory.kt:352) ~[?:?]
at org.pixeltime.enchantmentsenhance.manager.ItemManager.modifyTagSafely(ItemManager.java:88) ~[?:?]
at org.pixeltime.enchantmentsenhance.manager.ItemManager.setLevel(ItemManager.java:116) ~[?:?]
at org.pixeltime.enchantmentsenhance.manager.ItemManager.forgeItem(ItemManager.java:187) ~[?:?]
at org.pixeltime.enchantmentsenhance.manager.ItemManager.forgeItemWithoutReplacement(ItemManager.java:217) ~[?:?]
at org.pixeltime.enchantmentsenhance.gui.menu.icons.ForgedIcon.getItem(ForgedIcon.java:23) ~[?:?]
at org.pixeltime.enchantmentsenhance.gui.menu.MainMenu.update(MainMenu.java:238) ~[?:?]
at org.pixeltime.enchantmentsenhance.gui.menu.handlers.MenuHandler.onClick(MenuHandler.java:40) ~[?:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_202]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_202]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_202]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_202]
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:316) ~[spigot.jar:git-Spigot-2ee05fe-d31f05f]
... 17 more
The text was updated successfully, but these errors were encountered: