[ATM9 0.0.61] Client crash on login - class net.minecraft.client.multiplayer.ClientLevel cannot be cast to class net.minecraft.server.level.ServerLevel
bferullo opened this issue ยท 0 comments
Version: ATM 9 0.0.61
Running into a crash on entering the world; appears to be due to a wireless charger tick trying to charge a Railcraft Powered Rolling machine (I had just put down the rolling machine within the work area of an Advanced Wireless Charger).
Head of callstack:
Time: 2023-09-03 22:09:27
Description: Ticking block entity
java.lang.ClassCastException: class net.minecraft.client.multiplayer.ClientLevel cannot be cast to class net.minecraft.server.level.ServerLevel (net.minecraft.client.multiplayer.ClientLevel and net.minecraft.server.level.ServerLevel are in module [email protected] of loader 'TRANSFORMER' @8d7718e)
at mods.railcraft.world.level.block.entity.PoweredRollingMachineBlockEntity.access(PoweredRollingMachineBlockEntity.java:53) ~[railcraft-reborn-1.20.1-1.0.3.jar%23730!/:1.20.1-1.0.3] {re:classloading}
at mods.railcraft.world.level.block.entity.PoweredRollingMachineBlockEntity.storage(PoweredRollingMachineBlockEntity.java:49) ~[railcraft-reborn-1.20.1-1.0.3.jar%23730!/:1.20.1-1.0.3] {re:classloading}
at mods.railcraft.util.ForwardingEnergyStorage.receiveEnergy(ForwardingEnergyStorage.java:16) ~[railcraft-reborn-1.20.1-1.0.3.jar%23730!/:1.20.1-1.0.3] {re:classloading}
at com.supermartijn642.wirelesschargers.ChargerBlockEntity.lambda$update$1(ChargerBlockEntity.java:115) ~[wirelesschargers-1.0.8-forge-mc1.20.jar%23805!/:?] {re:classloading}
at net.minecraftforge.common.util.LazyOptional.map(LazyOptional.java:195) ~[forge-1.20.1-47.1.3-universal.jar%23815!/:?] {re:mixin,re:classloading}
at com.supermartijn642.wirelesschargers.ChargerBlockEntity.update(ChargerBlockEntity.java:115) ~[wirelesschargers-1.0.8-forge-mc1.20.jar%23805!/:?] {re:classloading}
at com.supermartijn642.core.block.EntityHoldingBlock.lambda$getTicker$0(EntityHoldingBlock.java:30) ~[supermartijn642corelib-1.1.12a-forge-mc1.20.jar%23777!/:?] {re:classloading}
at net.minecraft.world.level.chunk.LevelChunk$BoundTickingBlockEntity.m_142224_(LevelChunk.java:689) ~[client-1.20.1-20230612.114412-srg.jar%23810!/:?] {re:classloading,pl:accesstransformer:B}
at net.minecraft.world.level.chunk.LevelChunk$RebindableTickingBlockEntityWrapper.m_142224_(LevelChunk.java:782) ~[client-1.20.1-20230612.114412-srg.jar%23810!/:?] {re:classloading,pl:accesstransformer:B}
at net.minecraft.world.level.Level.m_46463_(Level.java:468) ~[client-1.20.1-20230612.114412-srg.jar%23810!/:?]
Full crash dump pastebin: https://pastebin.com/raw/1V3gGQsi