Elytra Trims

Elytra Trims

856k Downloads

[Bug]:

Mqisty opened this issue · 2 comments

commented

Mod loader

Fabric

Minecraft version

1.21.4

Mod version

4.0.0-alpha.3+1.21.4.jar

Affected mods

  • Elytra Trims
  • Extensions

Bug description

Whenever someone on my server joins with an elytra trim I get the error posted below. I do not have datafixerupper not sure where that's coming from, I do however have servux. I'm not sure if I should be sending this here or on the servux repo, I will move it there if requested.

[23:40:08] [Server thread/ERROR]: Error executing task on Server java.lang.ClassCastException: class dev.kikugie.elytratrims.recipe.ETSmithingRecipe$FlagRecipe cannot be cast to class net.minecraft.class_8062 (dev.kikugie.elytratrims.recipe.ETSmithingRecipe$FlagRecipe and net.minecraft.class_8062 are in unnamed module of loader 'knot' @55f3ddb1) at knot/com.mojang.serialization.codecs.RecordCodecBuilder$Instance.lambda$ap3$6(RecordCodecBuilder.java:286) ~[datafixerupper-8.0.16.jar:?] at knot/com.mojang.serialization.codecs.RecordCodecBuilder$2.encode(RecordCodecBuilder.java:112) ~[datafixerupper-8.0.16.jar:?] at knot/com.mojang.serialization.codecs.KeyDispatchCodec.encode(KeyDispatchCodec.java:74) ~[datafixerupper-8.0.16.jar:?] at knot/com.mojang.serialization.MapCodec$MapCodecCodec.encode(MapCodec.java:163) ~[datafixerupper-8.0.16.jar:?] at knot/com.mojang.serialization.Encoder.encodeStart(Encoder.java:14) ~[datafixerupper-8.0.16.jar:?] at knot/fi.dy.masa.servux.dataproviders.HudDataProvider.lambda$refreshRecipeManager$0(HudDataProvider.java:297) ~[servux-fabric-1.21.4-0.5.1.jar:?] at knot/com.google.common.collect.ImmutableList.forEach(ImmutableList.java:423) ~[guava-33.3.1-jre.jar:?] at knot/fi.dy.masa.servux.dataproviders.HudDataProvider.refreshRecipeManager(HudDataProvider.java:295) ~[servux-fabric-1.21.4-0.5.1.jar:?] at knot/fi.dy.masa.servux.network.packet.ServuxHudHandler.decodeServerData(ServuxHudHandler.java:78) ~[servux-fabric-1.21.4-0.5.1.jar:?] at knot/fi.dy.masa.servux.network.packet.ServuxHudHandler.receivePlayPayload(ServuxHudHandler.java:106) ~[servux-fabric-1.21.4-0.5.1.jar:?] at knot/net.fabricmc.fabric.impl.networking.server.ServerPlayNetworkAddon.lambda$receive$0(ServerPlayNetworkAddon.java:72) ~[fabric-networking-api-v1-4.3.10+8998135104-dcbc20376dd025b6.jar:?] at knot/net.minecraft.class_3738.run(class_3738.java:18) ~[server-intermediary.jar:?] at knot/net.minecraft.class_1255.method_18859(class_1255.java:164) ~[server-intermediary.jar:?] at knot/net.minecraft.class_4093.method_18859(class_4093.java:23) ~[server-intermediary.jar:?] at knot/net.minecraft.server.MinecraftServer.method_24306(MinecraftServer.java:889) ~[server-intermediary.jar:?] at knot/net.minecraft.server.MinecraftServer.method_18859(MinecraftServer.java:180) ~[server-intermediary.jar:?] at knot/net.minecraft.class_1255.method_16075(class_1255.java:138) ~[server-intermediary.jar:?] at knot/net.minecraft.server.MinecraftServer.method_20415(MinecraftServer.java:871) ~[server-intermediary.jar:?] at knot/net.minecraft.server.MinecraftServer.method_16075(MinecraftServer.java:865) ~[server-intermediary.jar:?] at knot/net.minecraft.class_1255.method_18857(class_1255.java:147) ~[server-intermediary.jar:?] at knot/net.minecraft.server.MinecraftServer.method_18857(MinecraftServer.java:829) ~[server-intermediary.jar:?] at knot/net.minecraft.server.MinecraftServer.method_16208(MinecraftServer.java:836) ~[server-intermediary.jar:?] at knot/net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:719) ~[server-intermediary.jar:?] at knot/net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:292) ~[server-intermediary.jar:?] at java.base/java.lang.Thread.run(Thread.java:1583) [?:?]

Steps to reproduce

No response

Relevant logs

No response

commented

Not sure why it got formatted like that, here's a link for legibility.

https://mclo.gs/H9OI2z6

commented

Thanks for the report, but I'm already aware of the issue. It doesn't cause a crash, so the fix is going to be out along with the next usual update to the mod.
(Also DataFixerUpper is a library developed by Mojang for Minecraft)