Arnuh/EchoPet

Error when trying to change the Llama Pet into it's baby form

Closed this issue · 0 comments

The following Crash Log occurs:
Running EchoPet-103 and minecraft version 1.19.2, the latest of paper.

[19:17:48 ERROR]: [EchoPet] Encountered severe error whilst handling InventoryClickEvent.
java.lang.ClassCastException: class com.dsh105.echopet.compat.nms.v1_19_2.entity.type.EntityLlamaPet cannot be cast to class net.minecraft.world.entity.EntityAgeable (com.dsh105.echopet.compat.nms.v1_19_2.entity.type.EntityLlamaPet is in unnamed module of loader 'EchoPet-103.jar' @3e812a2f; net.minecraft.world.entity.EntityAgeable is in unnamed module of loader java.net.URLClassLoader @20fa23c1)
at com.dsh105.echopet.compat.nms.v1_19_2.entity.base.EntityAgeablePetHandle.get(EntityAgeablePetHandle.java:31) ~[EchoPet-103.jar:?]
at com.dsh105.echopet.compat.nms.v1_19_2.entity.base.EntityAgeablePetHandle.setBaby(EntityAgeablePetHandle.java:36) ~[EchoPet-103.jar:?]
at com.dsh105.echopet.api.pet.AgeablePet.setBaby(AgeablePet.java:37) ~[EchoPet-103.jar:?]
at com.dsh105.echopet.compat.api.entity.data.PetData.attemptInteract(PetData.java:1056) ~[EchoPet-103.jar:?]
at com.dsh105.echopet.listeners.MenuListener.onInventoryClick(MenuListener.java:120) ~[EchoPet-103.jar:?]
at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor502.execute(Unknown Source) ~[?:?]
at org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:77) ~[paper-api-1.19.2-R0.1-SNAPSHOT.jar:?]
at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[paper-api-1.19.2-R0.1-SNAPSHOT.jar:git-Paper-307]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[paper-api-1.19.2-R0.1-SNAPSHOT.jar:?]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:670) ~[paper-api-1.19.2-R0.1-SNAPSHOT.jar:?]
at net.minecraft.server.network.ServerGamePacketListenerImpl.handleContainerClick(ServerGamePacketListenerImpl.java:3307) ~[?:?]
at net.minecraft.network.protocol.game.ServerboundContainerClickPacket.handle(ServerboundContainerClickPacket.java:58) ~[?:?]
at net.minecraft.network.protocol.game.ServerboundContainerClickPacket.handle(ServerboundContainerClickPacket.java:23) ~[?:?]
at net.minecraft.network.protocol.PacketUtils.lambda$ensureRunningOnSameThread$1(PacketUtils.java:51) ~[?:?]
at net.minecraft.server.TickTask.run(TickTask.java:18) ~[paper-1.19.2.jar:git-Paper-307]
at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:153) ~[?:?]
at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:24) ~[?:?]
at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1341) ~[paper-1.19.2.jar:git-Paper-307]
at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:185) ~[paper-1.19.2.jar:git-Paper-307]
at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:126) ~[?:?]
at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1318) ~[paper-1.19.2.jar:git-Paper-307]
at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1311) ~[paper-1.19.2.jar:git-Paper-307]
at net.minecraft.util.thread.BlockableEventLoop.managedBlock(BlockableEventLoop.java:136) ~[?:?]
at net.minecraft.server.MinecraftServer.waitUntilNextTick(MinecraftServer.java:1289) ~[paper-1.19.2.jar:git-Paper-307]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1177) ~[paper-1.19.2.jar:git-Paper-307]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:305) ~[paper-1.19.2.jar:git-Paper-307]
at java.lang.Thread.run(Thread.java:833) ~[?:?]