Closed ToppyTopology closed 4 months ago
Yeah Im having the same problem on my 1.19.2 server [19Jan2024 00:02:13.572] [Server thread/ERROR] [net.minecraftforge.eventbus.EventBus/EVENTBUS]: Exception caught during firing event: class java.util.HashMap$Node cannot be cast to class net.minecraft.world.entity.EntityType (java.util.HashMap$Node is in module java.base of loader 'bootstrap'; net.minecraft.world.entity.EntityType is in module minecraft@1.19.2 of loader 'TRANSFORMER' @73fbdf68) Index: 1 Listeners: 0: NORMAL 1: ASM: class yesman.epicfight.events.WorldEvents onDatapackSync(Lnet/minecraftforge/event/OnDatapackSyncEvent;)V java.lang.ClassCastException: class java.util.HashMap$Node cannot be cast to class net.minecraft.world.entity.EntityType (java.util.HashMap$Node is in module java.base of loader 'bootstrap'; net.minecraft.world.entity.EntityType is in module minecraft@1.19.2 of loader 'TRANSFORMER' @73fbdf68) at TRANSFORMER/epicfight@19.5.19/yesman.epicfight.api.data.reloader.MobPatchReloadListener.lambda$getDataStream$3(MobPatchReloadListener.java:536) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.base/java.util.HashMap$EntrySpliterator.forEachRemaining(HashMap.java:1858) at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150) at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173) at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596) at TRANSFORMER/epicfight@19.5.19/yesman.epicfight.events.WorldEvents.onDatapackSync(WorldEvents.java:83) at TRANSFORMER/epicfight@19.5.19/yesman.epicfight.events.__WorldEvents_onDatapackSync_OnDatapackSyncEvent.invoke(.dynamic) at MC-BOOTSTRAP/net.minecraftforge.eventbus/net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:73) at MC-BOOTSTRAP/net.minecraftforge.eventbus/net.minecraftforge.eventbus.EventBus.post(EventBus.java:315) at MC-BOOTSTRAP/net.minecraftforge.eventbus/net.minecraftforge.eventbus.EventBus.post(EventBus.java:296) at TRANSFORMER/minecraft@1.19.2/net.minecraft.server.players.PlayerList.m11261(PlayerListMixin.java:173) at TRANSFORMER/minecraft@1.19.2/net.minecraft.server.network.ServerLoginPacketListenerImpl.m10055(ServerLoginNetHandlerMixin.java:624) at TRANSFORMER/minecraft@1.19.2/net.minecraft.server.network.ServerLoginPacketListenerImpl.m9933(ServerLoginNetHandlerMixin.java:75) at TRANSFORMER/minecraft@1.19.2/net.minecraft.network.Connection.m129483(ConnectionMixin.java:248) at TRANSFORMER/minecraft@1.19.2/net.minecraft.server.network.ServerConnectionListener.m9721(ServerConnectionListener.java:143) at TRANSFORMER/minecraft@1.19.2/net.minecraft.server.MinecraftServer.m5703(MinecraftServerMixin.java:880) at TRANSFORMER/minecraft@1.19.2/net.minecraft.server.dedicated.DedicatedServer.m5703(DedicatedServerMixin.java:292) at TRANSFORMER/minecraft@1.19.2/net.minecraft.server.MinecraftServer.m5705(MinecraftServerMixin.java:806) at TRANSFORMER/minecraft@1.19.2/net.minecraft.server.MinecraftServer.m130011(MinecraftServerMixin.java:2127) at TRANSFORMER/minecraft@1.19.2/net.minecraft.server.MinecraftServer.m206580(MinecraftServerMixin.java:244) at java.base/java.lang.Thread.run(Thread.java:1589)
[19Jan2024 00:02:13.572] [Server thread/ERROR] [net.minecraft.server.network.ServerLoginPacketListenerImpl/]: Couldn't place player in world java.lang.ClassCastException: class java.util.HashMap$Node cannot be cast to class net.minecraft.world.entity.EntityType (java.util.HashMap$Node is in module java.base of loader 'bootstrap'; net.minecraft.world.entity.EntityType is in module minecraft@1.19.2 of loader 'TRANSFORMER' @73fbdf68) at yesman.epicfight.api.data.reloader.MobPatchReloadListener.lambda$getDataStream$3(MobPatchReloadListener.java:536) ~[EpicFight-19.5.19.jar%23206!/:19.5.19] {re:classloading,pl:runtimedistcleaner:A} at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) ~[?:?] {} at java.util.HashMap$EntrySpliterator.forEachRemaining(HashMap.java:1858) ~[?:?] {} at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) ~[?:?] {} at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) ~[?:?] {} at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150) ~[?:?] {} at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173) ~[?:?] {} at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?] {} at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596) ~[?:?] {} at yesman.epicfight.events.WorldEvents.onDatapackSync(WorldEvents.java:83) ~[EpicFight-19.5.19.jar%23206!/:19.5.19] {re:classloading} at yesman.epicfight.events.__WorldEvents_onDatapackSync_OnDatapackSyncEvent.invoke(.dynamic) ~[EpicFight-19.5.19.jar%23206!/:19.5.19] {re:classloading,pl:eventbus:B} at net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:73) ~[eventbus-6.0.3.jar%2384!/:?] {} at net.minecraftforge.eventbus.EventBus.post(EventBus.java:315) ~[eventbus-6.0.3.jar%2384!/:?] {} at net.minecraftforge.eventbus.EventBus.post(EventBus.java:296) ~[eventbus-6.0.3.jar%2384!/:?] {} at net.minecraft.server.players.PlayerList.m11261(PlayerListMixin.java:173) ~[server-1.19.2-20220805.130853-srg.jar%23225!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:A} at net.minecraft.server.network.ServerLoginPacketListenerImpl.m10055(ServerLoginNetHandlerMixin.java:624) ~[server-1.19.2-20220805.130853-srg.jar%23225!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:mixins.arclight.core.json:network.ServerLoginNetHandlerMixin,pl:mixin:A} at net.minecraft.server.network.ServerLoginPacketListenerImpl.m9933(ServerLoginNetHandlerMixin.java:75) ~[server-1.19.2-20220805.130853-srg.jar%23225!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:mixins.arclight.core.json:network.ServerLoginNetHandlerMixin,pl:mixin:A} at net.minecraft.network.Connection.m129483(ConnectionMixin.java:248) ~[server-1.19.2-20220805.130853-srg.jar%23225!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:mixins.arclight.core.json:network.ConnectionMixin,pl:mixin:APP:mixins.arclight.impl.forge.optimization.json:network.ConnectionMixin_Optimize,pl:mixin:A} at net.minecraft.server.network.ServerConnectionListener.m9721(ServerConnectionListener.java:143) ~[server-1.19.2-20220805.130853-srg.jar%23225!/:?] {re:classloading} at net.minecraft.server.MinecraftServer.m5703(MinecraftServerMixin.java:880) ~[server-1.19.2-20220805.130853-srg.jar%23225!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:A,re:mixin,pl:accesstransformer:B} at net.minecraft.server.dedicated.DedicatedServer.m5703(DedicatedServerMixin.java:292) ~[server-1.19.2-20220805.130853-srg.jar%23225!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:mixins.arclight.core.json:server.dedicated.DedicatedServerMixin,pl:mixin:A} at net.minecraft.server.MinecraftServer.m5705(MinecraftServerMixin.java:806) ~[server-1.19.2-20220805.130853-srg.jar%23225!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:A,re:mixin,pl:accesstransformer:B} at net.minecraft.server.MinecraftServer.m130011(MinecraftServerMixin.java:2127) ~[server-1.19.2-20220805.130853-srg.jar%23225!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:A,re:mixin,pl:accesstransformer:B} at net.minecraft.server.MinecraftServer.m206580(MinecraftServerMixin.java:244) ~[server-1.19.2-20220805.130853-srg.jar%23225!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:A,re:mixin,pl:accesstransformer:B} at java.lang.Thread.run(Thread.java:1589) [?:?] {re:mixin,re:mixin,re:mixin}
did you fix it?
I'm having a similar issue. It seems to be a java casting error, which may require change to the source code. I tested without datapacks and i am having the same exception
U need downgrade the game to 1.18.2, that’s was the solution I got
On Tue, Jun 18, 2024 at 2:46 PM MakkuSaiko @.***> wrote:
I'm having a similar issue. It seems to be a java casting error, which may require change to the source code. I tested without datapacks and i am having the same exception
— Reply to this email directly, view it on GitHub https://github.com/Yesssssman/epicfightmod/issues/1485#issuecomment-2176743305, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASH7SLFD45OZDMXL7D5OSX3ZIB6B5AVCNFSM6AAAAABAX4NPNSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZWG42DGMZQGU . You are receiving this because you commented.Message ID: @.***>
Hi Everyone. I seemed to have fixed the issue by modifying one of the classes. Please see PR #1665 for more information.
You can download the new version on my fork of the mod.
Ngl. It took me way longer than reasonable to fix it. Im not a modder, just a low skill programmer
@ToppyTopology I did find another bug where animations will cause game crashes. Please find latest version build here. Please DM me or comment if you find more problems
It has been fixed in 19.5.25
Have you checked if a similar issue is already reported by someone else?
Have you read the support policy?
Are you using the latest Epic Fight and recommended Forge version?
Is this issue related to mod incompatibility?
The mod
No response
Minecraft Version
1.19.2
What happened?
In singleplayer worlds, mob patch datapacks such as epic guard work perfectly fine. Though once I installed it to a dedicated server such as aternos, it causes invalid player data when a player joins. Deleting my data doesn't work aswell. Installing it while the server is open doesnt work because /reload breaks. I even tried testing this by making a datapack that simply disables custom epic fight animations, but unfortunately the same issue.
EDIT: sorry I tested this with other mods. I made another test while only having the mods EpicFight-19.5.19.jar and spiderstpo-1.19.2-2.0.4 (Nyf's Spiders) installed. The datapack works in singleplayer (it lets nyf's spiders animations play correctly since it disables efm on it), but same error on dedicated servers. Here is the log:
Epic Fight Disabled Entities.zip