Sollace / Unicopia

The pony powers mod to power in your pony pony pony
https://modrinth.com/mod/unicopia
56 stars 22 forks source link

Crash when trying to teleport onto boat while swimming in water #41

Closed coppercore closed 2 years ago

coppercore commented 2 years ago

Expected Behavior

When swimming above or underwater, aim at boat while swimming in water, press and hold teleport button, then appear ontop of boat once cast completes.

Current Behavior

Game instantly crashes when teleport button is pressed while aiming at a boat and swimming.

Temporary Workaround

  1. Swim up and hop up onto the boat, avoiding using the teleport while swimming.
  2. Note that if not swimming, simply standing in shallow water or standing on land, crash does not occur, and teleport completes successfully onto the boat.

Steps to Reproduce

  1. Make sure a boat is in the water.
  2. Be actually swimming and not standing in shallow water or on land.
  3. Aim at the boat, then press teleport to charge up the spell.
  4. Game will crash the exact moment the button is pressed.

Running on 1.17.1 with Unicopia 10.0.0-beta.13, Fabric API 0.44.0+1.17.

Crash log:

java.lang.ClassCastException: class net.minecraft.class_3966 cannot be cast to class net.minecraft.class_3965 (net.minecraft.class_3966 and net.minecraft.class_3965 are in unnamed module of loader net.fabricmc.loader.impl.launch.knot.KnotClassLoader @294e5088)
    at com.minelittlepony.unicopia.ability.UnicornTeleportAbility.tryActivate(UnicornTeleportAbility.java:89) ~[Unicopia-1.0.0-beta.13.jar:?]
    at com.minelittlepony.unicopia.ability.UnicornTeleportAbility.getCostEstimate(UnicornTeleportAbility.java:59) ~[Unicopia-1.0.0-beta.13.jar:?]
    at com.minelittlepony.unicopia.ability.AbilityDispatcher$Stat.lambda$getCost$0(AbilityDispatcher.java:160) ~[Unicopia-1.0.0-beta.13.jar:?]
    at java.util.Optional.map(Optional.java:260) ~[?:?]
    at com.minelittlepony.unicopia.ability.AbilityDispatcher$Stat.getCost(AbilityDispatcher.java:160) ~[Unicopia-1.0.0-beta.13.jar:?]
    at com.minelittlepony.unicopia.client.gui.ManaRingSlot.lambda$renderContents$0(ManaRingSlot.java:45) ~[Unicopia-1.0.0-beta.13.jar:?]
    at java.util.stream.ReferencePipeline$6$1.accept(ReferencePipeline.java:248) ~[?:?]
    at java.util.Iterator.forEachRemaining(Iterator.java:133) ~[?:?]
    at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1845) ~[?:?]
    at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) ~[?:?]
    at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) ~[?:?]
    at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921) ~[?:?]
    at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?]
    at java.util.stream.DoublePipeline.reduce(DoublePipeline.java:527) ~[?:?]
    at com.minelittlepony.unicopia.client.gui.ManaRingSlot.renderContents(ManaRingSlot.java:46) ~[Unicopia-1.0.0-beta.13.jar:?]
    at com.minelittlepony.unicopia.client.gui.Slot.renderBackground(Slot.java:107) ~[Unicopia-1.0.0-beta.13.jar:?]
    at com.minelittlepony.unicopia.client.gui.UHud.lambda$render$0(UHud.java:106) ~[Unicopia-1.0.0-beta.13.jar:?]
    at java.lang.Iterable.forEach(Iterable.java:75) ~[?:?]
    at com.minelittlepony.unicopia.client.gui.UHud.render(UHud.java:106) ~[Unicopia-1.0.0-beta.13.jar:?]
    at net.minecraft.class_329.handler$bie000$onRender(class_329.java:3476) ~[intermediary-minecraft-1.17.1-client.jar:?]
    at net.minecraft.class_329.method_1753(class_329.java) ~[intermediary-minecraft-1.17.1-client.jar:?]
    at net.minecraft.class_757.method_3192(class_757.java:855) ~[intermediary-minecraft-1.17.1-client.jar:?]
    at net.minecraft.class_310.method_1523(class_310.java:1112) ~[intermediary-minecraft-1.17.1-client.jar:?]
    at net.minecraft.class_310.method_1514(class_310.java:728) [intermediary-minecraft-1.17.1-client.jar:?]
    at net.minecraft.client.main.Main.main(Main.java:217) [intermediary-minecraft-1.17.1-client.jar:?]
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?]
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
    at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?]
    at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:599) [fabric-loader-0.12.8.jar:?]
    at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:77) [fabric-loader-0.12.8.jar:?]
    at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23) [fabric-loader-0.12.8.jar:?]
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?]
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
    at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?]
    at org.multimc.onesix.OneSixLauncher.launchWithMainClass(OneSixLauncher.java:210) [NewLaunch.jar:?]
    at org.multimc.onesix.OneSixLauncher.launch(OneSixLauncher.java:245) [NewLaunch.jar:?]
    at org.multimc.EntryPoint.listen(EntryPoint.java:143) [NewLaunch.jar:?]
    at org.multimc.EntryPoint.main(EntryPoint.java:34) [NewLaunch.jar:?]
[22:00:22] [Render thread/INFO]: Stopping worker threads
---- Minecraft Crash Report ----
// Don't do that.

Time: 12/24/21, 10:00 PM
Description: Unexpected error

java.lang.ClassCastException: class net.minecraft.class_3966 cannot be cast to class net.minecraft.class_3965 (net.minecraft.class_3966 and net.minecraft.class_3965 are in unnamed module of loader net.fabricmc.loader.impl.launch.knot.KnotClassLoader @294e5088)
    at com.minelittlepony.unicopia.ability.UnicornTeleportAbility.tryActivate(UnicornTeleportAbility.java:89)
    at com.minelittlepony.unicopia.ability.UnicornTeleportAbility.getCostEstimate(UnicornTeleportAbility.java:59)
    at com.minelittlepony.unicopia.ability.AbilityDispatcher$Stat.lambda$getCost$0(AbilityDispatcher.java:160)
    at java.base/java.util.Optional.map(Optional.java:260)
    at com.minelittlepony.unicopia.ability.AbilityDispatcher$Stat.getCost(AbilityDispatcher.java:160)
    at com.minelittlepony.unicopia.client.gui.ManaRingSlot.lambda$renderContents$0(ManaRingSlot.java:45)
    at java.base/java.util.stream.ReferencePipeline$6$1.accept(ReferencePipeline.java:248)
    at java.base/java.util.Iterator.forEachRemaining(Iterator.java:133)
    at java.base/java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1845)
    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.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921)
    at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
    at java.base/java.util.stream.DoublePipeline.reduce(DoublePipeline.java:527)
    at com.minelittlepony.unicopia.client.gui.ManaRingSlot.renderContents(ManaRingSlot.java:46)
    at com.minelittlepony.unicopia.client.gui.Slot.renderBackground(Slot.java:107)
    at com.minelittlepony.unicopia.client.gui.UHud.lambda$render$0(UHud.java:106)
    at java.base/java.lang.Iterable.forEach(Iterable.java:75)
    at com.minelittlepony.unicopia.client.gui.UHud.render(UHud.java:106)
    at net.minecraft.class_329.handler$bie000$onRender(class_329.java:3476)
    at net.minecraft.class_329.method_1753(class_329.java)
    at net.minecraft.class_757.method_3192(class_757.java:855)
    at net.minecraft.class_310.method_1523(class_310.java:1112)
    at net.minecraft.class_310.method_1514(class_310.java:728)
    at net.minecraft.client.main.Main.main(Main.java:217)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:568)
    at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:599)
    at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:77)
    at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:568)
    at org.multimc.onesix.OneSixLauncher.launchWithMainClass(OneSixLauncher.java:210)
    at org.multimc.onesix.OneSixLauncher.launch(OneSixLauncher.java:245)
    at org.multimc.EntryPoint.listen(EntryPoint.java:143)
    at org.multimc.EntryPoint.main(EntryPoint.java:34)

A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Thread: Render thread
Stacktrace:
    at com.minelittlepony.unicopia.ability.UnicornTeleportAbility.tryActivate(UnicornTeleportAbility.java:89)
    at com.minelittlepony.unicopia.ability.UnicornTeleportAbility.getCostEstimate(UnicornTeleportAbility.java:59)
    at com.minelittlepony.unicopia.ability.AbilityDispatcher$Stat.lambda$getCost$0(AbilityDispatcher.java:160)
    at java.base/java.util.Optional.map(Optional.java:260)
    at com.minelittlepony.unicopia.ability.AbilityDispatcher$Stat.getCost(AbilityDispatcher.java:160)
    at com.minelittlepony.unicopia.client.gui.ManaRingSlot.lambda$renderContents$0(ManaRingSlot.java:45)
    at java.base/java.util.stream.ReferencePipeline$6$1.accept(ReferencePipeline.java:248)
    at java.base/java.util.Iterator.forEachRemaining(Iterator.java:133)
    at java.base/java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1845)
    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.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921)
    at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
    at java.base/java.util.stream.DoublePipeline.reduce(DoublePipeline.java:527)
    at com.minelittlepony.unicopia.client.gui.ManaRingSlot.renderContents(ManaRingSlot.java:46)
    at com.minelittlepony.unicopia.client.gui.Slot.renderBackground(Slot.java:107)
    at com.minelittlepony.unicopia.client.gui.UHud.lambda$render$0(UHud.java:106)
    at java.base/java.lang.Iterable.forEach(Iterable.java:75)
    at com.minelittlepony.unicopia.client.gui.UHud.render(UHud.java:106)
    at net.minecraft.class_329.handler$bie000$onRender(class_329.java:3476)
    at net.minecraft.class_329.method_1753(class_329.java)

-- Affected level --
Details:
    All players: 2 total; [class_746['coppercore'/59163, l='ClientLevel', x=1356.91, y=56.53, z=8427.96], class_745['Nimbusfolf'/122464, l='ClientLevel', x=1346.43, y=62.69, z=8425.57]]
    Chunk stats: 1024, 484
    Level dimension: minecraft:overworld
    Level spawn location: World: (-124,67,432), Section: (at 4,3,0 in -8,4,27; chunk contains blocks -128,-64,432 to -113,319,447), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,-64,0 to -1,319,511)
    Level time: 92654810 game time, 2656092 day time
    Server brand: fabric
    Server type: Non-integrated multiplayer server
Stacktrace:
    at net.minecraft.class_638.method_8538(class_638.java:370)
    at net.minecraft.class_310.method_1587(class_310.java:2399)
    at net.minecraft.class_310.method_1514(class_310.java:752)
    at net.minecraft.client.main.Main.main(Main.java:217)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:568)
    at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:599)
    at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:77)
    at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:568)
    at org.multimc.onesix.OneSixLauncher.launchWithMainClass(OneSixLauncher.java:210)
    at org.multimc.onesix.OneSixLauncher.launch(OneSixLauncher.java:245)
    at org.multimc.EntryPoint.listen(EntryPoint.java:143)
    at org.multimc.EntryPoint.main(EntryPoint.java:34)

-- Last reload --
Details:
    Reload number: 1
    Reload reason: initial
    Finished: Yes
    Packs: Default, Fabric Mods

-- System Details --
Details:
    Minecraft Version: 1.17.1
    Minecraft Version ID: 1.17.1
    Operating System: Linux (amd64) version 5.15.7-1-MANJARO
    Java Version: 17.0.1, N/A
    Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 1548078712 bytes (1476 MiB) / 2776629248 bytes (2648 MiB) up to 8589934592 bytes (8192 MiB)
    CPUs: 32
    Processor Vendor: AuthenticAMD
    Processor Name: AMD Ryzen 9 5950X 16-Core Processor
    Identifier: AuthenticAMD Family 25 Model 33 Stepping 0
    Microarchitecture: Zen 3
    Frequency (GHz): 5.08
    Number of physical packages: 1
    Number of physical CPUs: 16
    Number of logical CPUs: 32
    Graphics card #0 name: TU116 [GeForce GTX 1660 SUPER]
    Graphics card #0 vendor: NVIDIA Corporation (0x10de)
    Graphics card #0 VRAM (MB): 288.00
    Graphics card #0 deviceId: 0x21c4
    Graphics card #0 versionInfo: unknown
    Virtual memory max (MB): 16054.31
    Virtual memory used (MB): 12230.87
    Swap memory total (MB): 0.00
    Swap memory used (MB): 0.00
    JVM Flags: 2 total; -Xms1024m -Xmx8192m
    Fabric Mods: 
        appleskin: AppleSkin mc1.17.1-2.2.0
        architectury: Architectury 2.8.50
        autofish: Autofish 0.9.3
        cloth-basic-math: cloth-basic-math 0.6.0
        cloth-config2: Cloth Config v5 5.2.47
        expandedstorage: Expanded Storage 7.3.3
        fabric: Fabric API 0.44.0+1.17
        fabric-api-base: Fabric API Base 0.4.0+cf39a74318
        fabric-api-lookup-api-v1: Fabric API Lookup API (v1) 1.4.0+cb9053d118
        fabric-biome-api-v1: Fabric Biome API (v1) 3.2.2+cf39a74318
        fabric-blockrenderlayer-v1: Fabric BlockRenderLayer Registration (v1) 1.1.6+cf39a74318
        fabric-command-api-v1: Fabric Command API (v1) 1.1.4+cf39a74318
        fabric-commands-v0: Fabric Commands (v0) 0.2.3+cf39a74318
        fabric-containers-v0: Fabric Containers (v0) 0.1.13+cf39a74318
        fabric-content-registries-v0: Fabric Content Registries (v0) 0.4.1+3447790d18
        fabric-crash-report-info-v1: Fabric Crash Report Info (v1) 0.1.6+cf39a74318
        fabric-dimensions-v1: Fabric Dimensions API (v1) 2.0.13+cf39a74318
        fabric-entity-events-v1: Fabric Entity Events (v1) 1.4.1+377137cc18
        fabric-events-interaction-v0: Fabric Events Interaction (v0) 0.4.12+e99fbe1218
        fabric-events-lifecycle-v0: Fabric Events Lifecycle (v0) 0.2.4+cf39a74318
        fabric-game-rule-api-v1: Fabric Game Rule API (v1) 1.0.8+cf39a74318
        fabric-item-api-v1: Fabric Item API (v1) 1.3.0+6617390918
        fabric-item-groups-v0: Fabric Item Groups (v0) 0.3.2+cf39a74318
        fabric-key-binding-api-v1: Fabric Key Binding API (v1) 1.0.6+2a2bb57318
        fabric-keybindings-v0: Fabric Key Bindings (v0) 0.2.4+cf39a74318
        fabric-lifecycle-events-v1: Fabric Lifecycle Events (v1) 1.4.6+0392f3a618
        fabric-loot-tables-v1: Fabric Loot Tables (v1) 1.0.5+cf39a74318
        fabric-mining-level-api-v1: Fabric Mining Level API (v1) 1.0.3+cf39a74318
        fabric-mining-levels-v0: Fabric Mining Levels (v0) 0.1.6+cf39a74318
        fabric-models-v0: Fabric Models (v0) 0.3.1+cf39a74318
        fabric-networking-api-v1: Fabric Networking API (v1) 1.0.14+cf39a74318
        fabric-networking-blockentity-v0: Fabric Networking Block Entity (v0) 0.2.12+cf39a74318
        fabric-networking-v0: Fabric Networking (v0) 0.3.3+cf39a74318
        fabric-object-builder-api-v1: Fabric Object Builder API (v1) 1.11.0+f907116918
        fabric-object-builders-v0: Fabric Object Builders (v0) 0.7.7+cf39a74318
        fabric-particles-v1: Fabric Particles (v1) 0.2.5+cf39a74318
        fabric-registry-sync-v0: Fabric Registry Sync (v0) 0.7.13+cf39a74318
        fabric-renderer-api-v1: Fabric Renderer API (v1) 0.4.5+cf39a74318
        fabric-renderer-indigo: Fabric Renderer - Indigo 0.4.9+cf39a74318
        fabric-renderer-registries-v1: Fabric Renderer Registries (v1) 3.2.6+cf39a74318
        fabric-rendering-data-attachment-v1: Fabric Rendering Data Attachment (v1) 0.1.6+cf39a74318
        fabric-rendering-fluids-v1: Fabric Rendering Fluids (v1) 0.2.1+cf39a74318
        fabric-rendering-v0: Fabric Rendering (v0) 1.1.7+cf39a74318
        fabric-rendering-v1: Fabric Rendering (v1) 1.10.1+377137cc18
        fabric-resource-loader-v0: Fabric Resource Loader (v0) 0.4.10+f09604ce18
        fabric-screen-api-v1: Fabric Screen API (v1) 1.0.5+cf39a74318
        fabric-screen-handler-api-v1: Fabric Screen Handler API (v1) 1.1.9+cf39a74318
        fabric-structure-api-v1: Fabric Structure API (v1) 1.1.15+cf39a74318
        fabric-tag-extensions-v0: Fabric Tag Extensions (v0) 1.2.3+cf39a74318
        fabric-textures-v0: Fabric Textures (v0) 1.0.7+cf39a74318
        fabric-tool-attribute-api-v1: Fabric Tool Attribute API (v1) 1.3.2+cf39a74318
        fabric-transfer-api-v1: Fabric Transfer API (v1) 1.5.3+cf39a74318
        fabricloader: Fabric Loader 0.12.8
        hydrogen: Hydrogen 0.3
        inventoryprofilesnext: Inventory Profiles Next 1.2.1
        java: OpenJDK 64-Bit Server VM 17
        kirin: Kirin UI 1.9.2-beta.1
        lightlevel: Light Level 2.0.0
        lithium: Lithium 0.7.5
        minecraft: Minecraft 1.17.1
        minelp: Mine Little Pony 4.3.8
        modmenu: Mod Menu 2.0.2
        mson: Mson 1.4.3
        ninjaphenix_container_lib: NinjaPhenix's Container Library 1.2.5
        org_joml_joml: joml 1.10.2
        phosphor: Phosphor 0.8.0
        presencefootsteps: Presence Footsteps r35-1.17
        roughlyenoughitems: Roughly Enough Items 6.2.351
        sodium: Sodium 0.3.3+build.8
        unicopia: Unicopia 1.0.0-beta.13
        voxelmap: VoxelMap 1.10.15
        wthit: wthit 3.6.1
    Launched Version: MultiMC5
    Backend library: LWJGL version 3.2.2 build 10
    Backend API: NVIDIA GeForce GTX 1660 SUPER/PCIe/SSE2 GL version 3.2.0 NVIDIA 495.44, NVIDIA Corporation
    Window size: 1920x1015
    GL Caps: Using framebuffer using OpenGL 3.2
    GL debug messages: 
    Using VBOs: Yes
    Is Modded: Definitely; Client brand changed to 'fabric'
    Type: Client (map_client.txt)
    Graphics mode: fancy
    Resource Packs: vanilla, Fabric Mods
    Current Language: English (US)
    CPU: 32x AMD Ryzen 9 5950X 16-Core Processor
#@!@# Game crashed! Crash report saved to: #@!@# /home/copper/.local/share/multimc/instances/1.17 CCNET/.minecraft/crash-reports/crash-2021-12-24_22.00.22-client.txt
Saving all world maps.
AL lib: (EE) alc_cleanup: 1 device not closed
Process exited with code 255.
coppercore commented 2 years ago

Additonal Info:

I just had the exact same error and crash with a lilypad setting on the water. Just tried to teleport onto it while swimming.

Crash report below:


java.lang.ClassCastException: class net.minecraft.class_3966 cannot be cast to class net.minecraft.class_3965 (net.minecraft.class_3966 and net.minecraft.class_3965 are in unnamed module of loader net.fabricmc.loader.impl.launch.knot.KnotClassLoader @294e5088)
    at com.minelittlepony.unicopia.ability.UnicornTeleportAbility.tryActivate(UnicornTeleportAbility.java:89) ~[Unicopia-1.0.0-beta.13.jar:?]
    at com.minelittlepony.unicopia.ability.UnicornTeleportAbility.getCostEstimate(UnicornTeleportAbility.java:59) ~[Unicopia-1.0.0-beta.13.jar:?]
    at com.minelittlepony.unicopia.ability.AbilityDispatcher$Stat.lambda$getCost$0(AbilityDispatcher.java:160) ~[Unicopia-1.0.0-beta.13.jar:?]
    at java.util.Optional.map(Optional.java:260) ~[?:?]
    at com.minelittlepony.unicopia.ability.AbilityDispatcher$Stat.getCost(AbilityDispatcher.java:160) ~[Unicopia-1.0.0-beta.13.jar:?]
    at com.minelittlepony.unicopia.client.gui.ManaRingSlot.lambda$renderContents$0(ManaRingSlot.java:45) ~[Unicopia-1.0.0-beta.13.jar:?]
    at java.util.stream.ReferencePipeline$6$1.accept(ReferencePipeline.java:248) ~[?:?]
    at java.util.Iterator.forEachRemaining(Iterator.java:133) ~[?:?]
    at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1845) ~[?:?]
    at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) ~[?:?]
    at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) ~[?:?]
    at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921) ~[?:?]
    at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?]
    at java.util.stream.DoublePipeline.reduce(DoublePipeline.java:527) ~[?:?]
    at com.minelittlepony.unicopia.client.gui.ManaRingSlot.renderContents(ManaRingSlot.java:46) ~[Unicopia-1.0.0-beta.13.jar:?]
    at com.minelittlepony.unicopia.client.gui.Slot.renderBackground(Slot.java:107) ~[Unicopia-1.0.0-beta.13.jar:?]
    at com.minelittlepony.unicopia.client.gui.UHud.lambda$render$0(UHud.java:106) ~[Unicopia-1.0.0-beta.13.jar:?]
    at java.lang.Iterable.forEach(Iterable.java:75) ~[?:?]
    at com.minelittlepony.unicopia.client.gui.UHud.render(UHud.java:106) ~[Unicopia-1.0.0-beta.13.jar:?]
    at net.minecraft.class_329.handler$bie000$onRender(class_329.java:3476) ~[intermediary-minecraft-1.17.1-client.jar:?]
    at net.minecraft.class_329.method_1753(class_329.java) ~[intermediary-minecraft-1.17.1-client.jar:?]
    at net.minecraft.class_757.method_3192(class_757.java:855) ~[intermediary-minecraft-1.17.1-client.jar:?]
    at net.minecraft.class_310.method_1523(class_310.java:1112) ~[intermediary-minecraft-1.17.1-client.jar:?]
    at net.minecraft.class_310.method_1514(class_310.java:728) [intermediary-minecraft-1.17.1-client.jar:?]
    at net.minecraft.client.main.Main.main(Main.java:217) [intermediary-minecraft-1.17.1-client.jar:?]
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?]
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
    at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?]
    at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:599) [fabric-loader-0.12.8.jar:?]
    at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:77) [fabric-loader-0.12.8.jar:?]
    at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23) [fabric-loader-0.12.8.jar:?]
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?]
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
    at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?]
    at org.multimc.onesix.OneSixLauncher.launchWithMainClass(OneSixLauncher.java:210) [NewLaunch.jar:?]
    at org.multimc.onesix.OneSixLauncher.launch(OneSixLauncher.java:245) [NewLaunch.jar:?]
    at org.multimc.EntryPoint.listen(EntryPoint.java:143) [NewLaunch.jar:?]
    at org.multimc.EntryPoint.main(EntryPoint.java:34) [NewLaunch.jar:?]
[21:13:16] [Render thread/INFO]: Stopping worker threads
---- Minecraft Crash Report ----
// Don't be sad. I'll do better next time, I promise!

Time: 12/25/21, 9:13 PM
Description: Unexpected error

java.lang.ClassCastException: class net.minecraft.class_3966 cannot be cast to class net.minecraft.class_3965 (net.minecraft.class_3966 and net.minecraft.class_3965 are in unnamed module of loader net.fabricmc.loader.impl.launch.knot.KnotClassLoader @294e5088)
    at com.minelittlepony.unicopia.ability.UnicornTeleportAbility.tryActivate(UnicornTeleportAbility.java:89)
    at com.minelittlepony.unicopia.ability.UnicornTeleportAbility.getCostEstimate(UnicornTeleportAbility.java:59)
    at com.minelittlepony.unicopia.ability.AbilityDispatcher$Stat.lambda$getCost$0(AbilityDispatcher.java:160)
    at java.base/java.util.Optional.map(Optional.java:260)
    at com.minelittlepony.unicopia.ability.AbilityDispatcher$Stat.getCost(AbilityDispatcher.java:160)
    at com.minelittlepony.unicopia.client.gui.ManaRingSlot.lambda$renderContents$0(ManaRingSlot.java:45)
    at java.base/java.util.stream.ReferencePipeline$6$1.accept(ReferencePipeline.java:248)
    at java.base/java.util.Iterator.forEachRemaining(Iterator.java:133)
    at java.base/java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1845)
    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.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921)
    at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
    at java.base/java.util.stream.DoublePipeline.reduce(DoublePipeline.java:527)
    at com.minelittlepony.unicopia.client.gui.ManaRingSlot.renderContents(ManaRingSlot.java:46)
    at com.minelittlepony.unicopia.client.gui.Slot.renderBackground(Slot.java:107)
    at com.minelittlepony.unicopia.client.gui.UHud.lambda$render$0(UHud.java:106)
    at java.base/java.lang.Iterable.forEach(Iterable.java:75)
    at com.minelittlepony.unicopia.client.gui.UHud.render(UHud.java:106)
    at net.minecraft.class_329.handler$bie000$onRender(class_329.java:3476)
    at net.minecraft.class_329.method_1753(class_329.java)
    at net.minecraft.class_757.method_3192(class_757.java:855)
    at net.minecraft.class_310.method_1523(class_310.java:1112)
    at net.minecraft.class_310.method_1514(class_310.java:728)
    at net.minecraft.client.main.Main.main(Main.java:217)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:568)
    at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:599)
    at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:77)
    at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:568)
    at org.multimc.onesix.OneSixLauncher.launchWithMainClass(OneSixLauncher.java:210)
    at org.multimc.onesix.OneSixLauncher.launch(OneSixLauncher.java:245)
    at org.multimc.EntryPoint.listen(EntryPoint.java:143)
    at org.multimc.EntryPoint.main(EntryPoint.java:34)

A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Thread: Render thread
Stacktrace:
    at com.minelittlepony.unicopia.ability.UnicornTeleportAbility.tryActivate(UnicornTeleportAbility.java:89)
    at com.minelittlepony.unicopia.ability.UnicornTeleportAbility.getCostEstimate(UnicornTeleportAbility.java:59)
    at com.minelittlepony.unicopia.ability.AbilityDispatcher$Stat.lambda$getCost$0(AbilityDispatcher.java:160)
    at java.base/java.util.Optional.map(Optional.java:260)
    at com.minelittlepony.unicopia.ability.AbilityDispatcher$Stat.getCost(AbilityDispatcher.java:160)
    at com.minelittlepony.unicopia.client.gui.ManaRingSlot.lambda$renderContents$0(ManaRingSlot.java:45)
    at java.base/java.util.stream.ReferencePipeline$6$1.accept(ReferencePipeline.java:248)
    at java.base/java.util.Iterator.forEachRemaining(Iterator.java:133)
    at java.base/java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1845)
    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.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921)
    at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
    at java.base/java.util.stream.DoublePipeline.reduce(DoublePipeline.java:527)
    at com.minelittlepony.unicopia.client.gui.ManaRingSlot.renderContents(ManaRingSlot.java:46)
    at com.minelittlepony.unicopia.client.gui.Slot.renderBackground(Slot.java:107)
    at com.minelittlepony.unicopia.client.gui.UHud.lambda$render$0(UHud.java:106)
    at java.base/java.lang.Iterable.forEach(Iterable.java:75)
    at com.minelittlepony.unicopia.client.gui.UHud.render(UHud.java:106)
    at net.minecraft.class_329.handler$bie000$onRender(class_329.java:3476)
    at net.minecraft.class_329.method_1753(class_329.java)

-- Affected level --
Details:
    All players: 2 total; [class_746['coppercore'/56720, l='ClientLevel', x=1360.30, y=57.15, z=7281.98], class_745['Nimbusfolf'/65011, l='ClientLevel', x=1394.08, y=69.71, z=7350.70]]
    Chunk stats: 1024, 530
    Level dimension: minecraft:overworld
    Level spawn location: World: (-124,67,432), Section: (at 4,3,0 in -8,4,27; chunk contains blocks -128,-64,432 to -113,319,447), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,-64,0 to -1,319,511)
    Level time: 93683924 game time, 3716635 day time
    Server brand: fabric
    Server type: Non-integrated multiplayer server
Stacktrace:
    at net.minecraft.class_638.method_8538(class_638.java:370)
    at net.minecraft.class_310.method_1587(class_310.java:2399)
    at net.minecraft.class_310.method_1514(class_310.java:752)
    at net.minecraft.client.main.Main.main(Main.java:217)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:568)
    at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:599)
    at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:77)
    at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:568)
    at org.multimc.onesix.OneSixLauncher.launchWithMainClass(OneSixLauncher.java:210)
    at org.multimc.onesix.OneSixLauncher.launch(OneSixLauncher.java:245)
    at org.multimc.EntryPoint.listen(EntryPoint.java:143)
    at org.multimc.EntryPoint.main(EntryPoint.java:34)

-- Last reload --
Details:
    Reload number: 1
    Reload reason: initial
    Finished: Yes
    Packs: Default, Fabric Mods

-- System Details --
Details:
    Minecraft Version: 1.17.1
    Minecraft Version ID: 1.17.1
    Operating System: Linux (amd64) version 5.15.7-1-MANJARO
    Java Version: 17.0.1, N/A
    Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 904235240 bytes (862 MiB) / 2348810240 bytes (2240 MiB) up to 8589934592 bytes (8192 MiB)
    CPUs: 32
    Processor Vendor: AuthenticAMD
    Processor Name: AMD Ryzen 9 5950X 16-Core Processor
    Identifier: AuthenticAMD Family 25 Model 33 Stepping 0
    Microarchitecture: Zen 3
    Frequency (GHz): 5.08
    Number of physical packages: 1
    Number of physical CPUs: 16
    Number of logical CPUs: 32
    Graphics card #0 name: TU116 [GeForce GTX 1660 SUPER]
    Graphics card #0 vendor: NVIDIA Corporation (0x10de)
    Graphics card #0 VRAM (MB): 288.00
    Graphics card #0 deviceId: 0x21c4
    Graphics card #0 versionInfo: unknown
    Virtual memory max (MB): 16054.31
    Virtual memory used (MB): 10859.85
    Swap memory total (MB): 0.00
    Swap memory used (MB): 0.00
    JVM Flags: 2 total; -Xms1024m -Xmx8192m
    Fabric Mods: 
        appleskin: AppleSkin mc1.17.1-2.2.0
        architectury: Architectury 2.8.50
        autofish: Autofish 0.9.3
        cloth-basic-math: cloth-basic-math 0.6.0
        cloth-config2: Cloth Config v5 5.2.47
        expandedstorage: Expanded Storage 7.3.3
        fabric: Fabric API 0.44.0+1.17
        fabric-api-base: Fabric API Base 0.4.0+cf39a74318
        fabric-api-lookup-api-v1: Fabric API Lookup API (v1) 1.4.0+cb9053d118
        fabric-biome-api-v1: Fabric Biome API (v1) 3.2.2+cf39a74318
        fabric-blockrenderlayer-v1: Fabric BlockRenderLayer Registration (v1) 1.1.6+cf39a74318
        fabric-command-api-v1: Fabric Command API (v1) 1.1.4+cf39a74318
        fabric-commands-v0: Fabric Commands (v0) 0.2.3+cf39a74318
        fabric-containers-v0: Fabric Containers (v0) 0.1.13+cf39a74318
        fabric-content-registries-v0: Fabric Content Registries (v0) 0.4.1+3447790d18
        fabric-crash-report-info-v1: Fabric Crash Report Info (v1) 0.1.6+cf39a74318
        fabric-dimensions-v1: Fabric Dimensions API (v1) 2.0.13+cf39a74318
        fabric-entity-events-v1: Fabric Entity Events (v1) 1.4.1+377137cc18
        fabric-events-interaction-v0: Fabric Events Interaction (v0) 0.4.12+e99fbe1218
        fabric-events-lifecycle-v0: Fabric Events Lifecycle (v0) 0.2.4+cf39a74318
        fabric-game-rule-api-v1: Fabric Game Rule API (v1) 1.0.8+cf39a74318
        fabric-item-api-v1: Fabric Item API (v1) 1.3.0+6617390918
        fabric-item-groups-v0: Fabric Item Groups (v0) 0.3.2+cf39a74318
        fabric-key-binding-api-v1: Fabric Key Binding API (v1) 1.0.6+2a2bb57318
        fabric-keybindings-v0: Fabric Key Bindings (v0) 0.2.4+cf39a74318
        fabric-lifecycle-events-v1: Fabric Lifecycle Events (v1) 1.4.6+0392f3a618
        fabric-loot-tables-v1: Fabric Loot Tables (v1) 1.0.5+cf39a74318
        fabric-mining-level-api-v1: Fabric Mining Level API (v1) 1.0.3+cf39a74318
        fabric-mining-levels-v0: Fabric Mining Levels (v0) 0.1.6+cf39a74318
        fabric-models-v0: Fabric Models (v0) 0.3.1+cf39a74318
        fabric-networking-api-v1: Fabric Networking API (v1) 1.0.14+cf39a74318
        fabric-networking-blockentity-v0: Fabric Networking Block Entity (v0) 0.2.12+cf39a74318
        fabric-networking-v0: Fabric Networking (v0) 0.3.3+cf39a74318
        fabric-object-builder-api-v1: Fabric Object Builder API (v1) 1.11.0+f907116918
        fabric-object-builders-v0: Fabric Object Builders (v0) 0.7.7+cf39a74318
        fabric-particles-v1: Fabric Particles (v1) 0.2.5+cf39a74318
        fabric-registry-sync-v0: Fabric Registry Sync (v0) 0.7.13+cf39a74318
        fabric-renderer-api-v1: Fabric Renderer API (v1) 0.4.5+cf39a74318
        fabric-renderer-indigo: Fabric Renderer - Indigo 0.4.9+cf39a74318
        fabric-renderer-registries-v1: Fabric Renderer Registries (v1) 3.2.6+cf39a74318
        fabric-rendering-data-attachment-v1: Fabric Rendering Data Attachment (v1) 0.1.6+cf39a74318
        fabric-rendering-fluids-v1: Fabric Rendering Fluids (v1) 0.2.1+cf39a74318
        fabric-rendering-v0: Fabric Rendering (v0) 1.1.7+cf39a74318
        fabric-rendering-v1: Fabric Rendering (v1) 1.10.1+377137cc18
        fabric-resource-loader-v0: Fabric Resource Loader (v0) 0.4.10+f09604ce18
        fabric-screen-api-v1: Fabric Screen API (v1) 1.0.5+cf39a74318
        fabric-screen-handler-api-v1: Fabric Screen Handler API (v1) 1.1.9+cf39a74318
        fabric-structure-api-v1: Fabric Structure API (v1) 1.1.15+cf39a74318
        fabric-tag-extensions-v0: Fabric Tag Extensions (v0) 1.2.3+cf39a74318
        fabric-textures-v0: Fabric Textures (v0) 1.0.7+cf39a74318
        fabric-tool-attribute-api-v1: Fabric Tool Attribute API (v1) 1.3.2+cf39a74318
        fabric-transfer-api-v1: Fabric Transfer API (v1) 1.5.3+cf39a74318
        fabricloader: Fabric Loader 0.12.8
        hydrogen: Hydrogen 0.3
        inventoryprofilesnext: Inventory Profiles Next 1.2.1
        java: OpenJDK 64-Bit Server VM 17
        kirin: Kirin UI 1.9.2-beta.1
        lightlevel: Light Level 2.0.0
        lithium: Lithium 0.7.5
        minecraft: Minecraft 1.17.1
        minelp: Mine Little Pony 4.3.8
        modmenu: Mod Menu 2.0.2
        mson: Mson 1.4.3
        ninjaphenix_container_lib: NinjaPhenix's Container Library 1.2.5
        org_joml_joml: joml 1.10.2
        phosphor: Phosphor 0.8.0
        presencefootsteps: Presence Footsteps r35-1.17
        roughlyenoughitems: Roughly Enough Items 6.2.351
        sodium: Sodium 0.3.3+build.8
        unicopia: Unicopia 1.0.0-beta.13
        voxelmap: VoxelMap 1.10.15
        wthit: wthit 3.6.1
    Launched Version: MultiMC5
    Backend library: LWJGL version 3.2.2 build 10
    Backend API: NVIDIA GeForce GTX 1660 SUPER/PCIe/SSE2 GL version 3.2.0 NVIDIA 495.44, NVIDIA Corporation
    Window size: 1920x1015
    GL Caps: Using framebuffer using OpenGL 3.2
    GL debug messages: 
    Using VBOs: Yes
    Is Modded: Definitely; Client brand changed to 'fabric'
    Type: Client (map_client.txt)
    Graphics mode: fancy
    Resource Packs: vanilla, Fabric Mods
    Current Language: English (US)
    CPU: 32x AMD Ryzen 9 5950X 16-Core Processor
#@!@# Game crashed! Crash report saved to: #@!@# /home/copper/.local/share/multimc/instances/1.17 CCNET/.minecraft/crash-reports/crash-2021-12-25_21.13.16-client.txt
Saving all world maps..
AL lib: (EE) alc_cleanup: 1 device not closed
Process exited with code 255.```
Sollace commented 2 years ago

Closing as this issue has been fixed in dev but not yet put into a release. https://github.com/Sollace/Unicopia/commit/430ee9a85e6261f92ad80b34b7a44814b754c2b1