SkytAsul / BeautyQuests

A quests plugin based on a simple-to-use graphical interface (Minecraft)
MIT License
155 stars 33 forks source link

Bug could not pass event #290

Closed scalap02 closed 1 year ago

scalap02 commented 1 year ago

Bonjour J'ai un problème lié au plugin en 1.16.5, sur un serveur mohist et en utilisant la version 0.20.1, j'ai un message d'erreur qui arrive très fréquemment et qui, je crois consomme ma ram :

[16:30:50 ERROR]: Could not pass event BQBlockBreakEvent to BeautyQuests v0.20.1 org.bukkit.event.EventException: null at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:303) ~[mohist-1.16.5-1161-universal.jar:?] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[mohist-1.16.5-1161-universal.jar:?] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:593) ~[mohist-1.16.5-1161-universal.jar:?] at fr.skytasul.quests.QuestsListener.onBreak(QuestsListener.java:219) ~[?:?] at jdk.internal.reflect.GeneratedMethodAccessor151.invoke(Unknown Source) ~[?:?] 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:301) ~[mohist-1.16.5-1161-universal.jar:?] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[mohist-1.16.5-1161-universal.jar:?] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:593) ~[mohist-1.16.5-1161-universal.jar:?] at com.mohistmc.eventhandler.dispatcher.BlockEventDispatcher.onBreakBlockEvent(BlockEventDispatcher.java:55) ~[mohist-1.16.5-1161-universal.jar:?] at net.minecraftforge.eventbus.ASMEventHandler_62_BlockEventDispatcher_onBreakBlockEvent_BreakEvent.invoke(.dynamic) ~[?:?] at net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:85) ~[eventbus-4.0.0.jar:?] at net.minecraftforge.eventbus.EventBus.post(EventBus.java:304) ~[server.jar:?] at net.minecraftforge.eventbus.EventBus.post(EventBus.java:284) ~[server.jar:?] at net.minecraftforge.common.ForgeHooks.onBlockBreakEvent(ForgeHooks.java:604) ~[forge:?] at net.minecraft.server.management.PlayerInteractionManager.func_180237_b(PlayerInteractionManager.java:299) ~[?:?] at net.minecraft.server.management.PlayerInteractionManager.func_229860a(PlayerInteractionManager.java:288) ~[?:?] at net.minecraft.server.management.PlayerInteractionManager.func_225416_a(PlayerInteractionManager.java:258) ~[?:?] at net.minecraft.network.play.ServerPlayNetHandler.func_147345_a(ServerPlayNetHandler.java:1363) ~[?:?] at net.minecraft.network.play.client.CPlayerDiggingPacket.func_148833_a(SourceFile:40) ~[?:?] at net.minecraft.network.play.client.CPlayerDiggingPacket.func_148833_a(SourceFile:10) ~[?:?] at net.minecraft.network.PacketThreadUtil.func_225383_a(PacketThreadUtil.java:22) ~[?:?] at net.minecraft.util.concurrent.TickDelayedTask.run(SourceFile:18) ~[?:?] at net.minecraft.util.concurrent.ThreadTaskExecutor.func_213166_h(ThreadTaskExecutor.java:153) ~[?:?] at net.minecraft.util.concurrent.RecursiveEventLoop.func_213166_h(SourceFile:23) ~[?:?] at net.minecraft.server.MinecraftServer.func_213166_h(MinecraftServer.java:936) ~[?:?] at net.minecraft.server.MinecraftServer.func_213166_h(MinecraftServer.java:174) ~[?:?] at net.minecraft.util.concurrent.ThreadTaskExecutor.func_213168_p(ThreadTaskExecutor.java:126) ~[?:?] at net.minecraft.server.MinecraftServer.func_213205_aW(MinecraftServer.java:919) ~[?:?] at net.minecraft.server.MinecraftServer.func_213168_p(MinecraftServer.java:913) ~[?:?] at net.minecraft.util.concurrent.ThreadTaskExecutor.func_213161_c(ThreadTaskExecutor.java:136) ~[?:?] at net.minecraft.server.MinecraftServer.func_213202_o(MinecraftServer.java:899) ~[?:?] at net.minecraft.server.MinecraftServer.func_240802v(MinecraftServer.java:819) ~[?:?] at net.minecraft.server.MinecraftServer.func_240783a(MinecraftServer.java:267) ~[?:?] at java.lang.Thread.run(Thread.java:833) ~[?:?] Caused by: java.lang.IllegalArgumentException: Unsupported material with no data value: POWAH_URANINITE_ORE_POOR at fr.skytasul.quests.utils.XMaterial.lambda$matchXMaterial$0(XMaterial.java:1722) ~[?:?] at java.util.Optional.orElseThrow(Optional.java:403) ~[?:?] at fr.skytasul.quests.utils.XMaterial.matchXMaterial(XMaterial.java:1722) ~[?:?] at fr.skytasul.quests.utils.XBlock.isSimilar(XBlock.java:605) ~[?:?] at fr.skytasul.quests.utils.types.BQBlock$BQBlockMaterial.applies(BQBlock.java:158) ~[?:?] at fr.skytasul.quests.api.stages.types.AbstractCountableBlockStage.objectApplies(AbstractCountableBlockStage.java:27) ~[?:?] at fr.skytasul.quests.api.stages.types.AbstractCountableBlockStage.objectApplies(AbstractCountableBlockStage.java:19) ~[?:?] at fr.skytasul.quests.api.stages.types.AbstractCountableStage.event(AbstractCountableStage.java:170) ~[?:?] at fr.skytasul.quests.stages.StageMine.onMine(StageMine.java:75) ~[?:?] at jdk.internal.reflect.GeneratedMethodAccessor134.invoke(Unknown Source) ~[?:?] 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:301) ~[mohist-1.16.5-1161-universal.jar:?] ... 35 more [16:30:50 ERROR]: Could not pass event BQBlockBreakEvent to BeautyQuests v0.20.1 org.bukkit.event.EventException: null at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:303) ~[mohist-1.16.5-1161-universal.jar:?] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[mohist-1.16.5-1161-universal.jar:?] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:593) ~[mohist-1.16.5-1161-universal.jar:?] at fr.skytasul.quests.QuestsListener.onBreak(QuestsListener.java:219) ~[?:?] at jdk.internal.reflect.GeneratedMethodAccessor151.invoke(Unknown Source) ~[?:?] 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:301) ~[mohist-1.16.5-1161-universal.jar:?] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[mohist-1.16.5-1161-universal.jar:?] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:593) ~[mohist-1.16.5-1161-universal.jar:?] at com.mohistmc.eventhandler.dispatcher.BlockEventDispatcher.onBreakBlockEvent(BlockEventDispatcher.java:55) ~[mohist-1.16.5-1161-universal.jar:?] at net.minecraftforge.eventbus.ASMEventHandler_62_BlockEventDispatcher_onBreakBlockEvent_BreakEvent.invoke(.dynamic) ~[?:?] at net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:85) ~[eventbus-4.0.0.jar:?] at net.minecraftforge.eventbus.EventBus.post(EventBus.java:304) ~[server.jar:?] at net.minecraftforge.eventbus.EventBus.post(EventBus.java:284) ~[server.jar:?] at net.minecraftforge.common.ForgeHooks.onBlockBreakEvent(ForgeHooks.java:604) ~[forge:?] at net.minecraft.server.management.PlayerInteractionManager.func_180237_b(PlayerInteractionManager.java:299) ~[?:?] at net.minecraft.server.management.PlayerInteractionManager.func_229860a(PlayerInteractionManager.java:288) ~[?:?] at net.minecraft.server.management.PlayerInteractionManager.func_225416_a(PlayerInteractionManager.java:258) ~[?:?] at net.minecraft.network.play.ServerPlayNetHandler.func_147345_a(ServerPlayNetHandler.java:1363) ~[?:?] at net.minecraft.network.play.client.CPlayerDiggingPacket.func_148833_a(SourceFile:40) ~[?:?] at net.minecraft.network.play.client.CPlayerDiggingPacket.func_148833_a(SourceFile:10) ~[?:?] at net.minecraft.network.PacketThreadUtil.func_225383_a(PacketThreadUtil.java:22) ~[?:?] at net.minecraft.util.concurrent.TickDelayedTask.run(SourceFile:18) ~[?:?] at net.minecraft.util.concurrent.ThreadTaskExecutor.func_213166_h(ThreadTaskExecutor.java:153) ~[?:?] at net.minecraft.util.concurrent.RecursiveEventLoop.func_213166_h(SourceFile:23) ~[?:?] at net.minecraft.server.MinecraftServer.func_213166_h(MinecraftServer.java:936) ~[?:?] at net.minecraft.server.MinecraftServer.func_213166_h(MinecraftServer.java:174) ~[?:?] at net.minecraft.util.concurrent.ThreadTaskExecutor.func_213168_p(ThreadTaskExecutor.java:126) ~[?:?] at net.minecraft.server.MinecraftServer.func_213205_aW(MinecraftServer.java:919) ~[?:?] at net.minecraft.server.MinecraftServer.func_213168_p(MinecraftServer.java:913) ~[?:?] at net.minecraft.util.concurrent.ThreadTaskExecutor.func_213160_bf(ThreadTaskExecutor.java:114) ~[?:?] at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:1033) ~[?:?] at net.minecraft.server.MinecraftServer.func_240802v(MinecraftServer.java:815) ~[?:?] at net.minecraft.server.MinecraftServer.func_240783a(MinecraftServer.java:267) ~[?:?] at java.lang.Thread.run(Thread.java:833) ~[?:?] Caused by: java.lang.IllegalArgumentException: Unsupported material with no data value: POWAH_URANINITE_ORE_POOR at fr.skytasul.quests.utils.XMaterial.lambda$matchXMaterial$0(XMaterial.java:1722) ~[?:?] at java.util.Optional.orElseThrow(Optional.java:403) ~[?:?] at fr.skytasul.quests.utils.XMaterial.matchXMaterial(XMaterial.java:1722) ~[?:?] at fr.skytasul.quests.utils.XBlock.isSimilar(XBlock.java:605) ~[?:?] at fr.skytasul.quests.utils.types.BQBlock$BQBlockMaterial.applies(BQBlock.java:158) ~[?:?] at fr.skytasul.quests.api.stages.types.AbstractCountableBlockStage.objectApplies(AbstractCountableBlockStage.java:27) ~[?:?] at fr.skytasul.quests.api.stages.types.AbstractCountableBlockStage.objectApplies(AbstractCountableBlockStage.java:19) ~[?:?] at fr.skytasul.quests.api.stages.types.AbstractCountableStage.event(AbstractCountableStage.java:170) ~[?:?] at fr.skytasul.quests.stages.StageMine.onMine(StageMine.java:75) ~[?:?] at jdk.internal.reflect.GeneratedMethodAccessor134.invoke(Unknown Source) ~[?:?] 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:301) ~[mohist-1.16.5-1161-universal.jar:?] ... 35 more

Je vois que ça a un lien avec les mods que j'ai sur mon serveur mais je ne comprends pas pourquoi un message d'erreur arrive (surtout avec des minerais moddées)

Merci d'avance pour la réponse

(FR: Si vous êtes plus facilement compréhensible en français, écrivez dans cette langue car il s'agit de ma langue natale)

SkytAsul commented 1 year ago

Mohist n'est pas et ne sera jamais supporté. Tout serveur mixant l'api bukkit et forge est foireux et occasionnera ce genre de bugs. Dans ton cas, les types de blocs custom clashent avec le système de rétro-compatibilité.