Tschipp / CarryOn

Carry On mod for Minecraft
GNU Lesser General Public License v3.0
86 stars 51 forks source link

Won't load world with Carry on (1.21.1) #703

Open ath0rus opened 3 weeks ago

ath0rus commented 3 weeks ago

Minecraft Version: 1.21.1 Forge Version: 52.0.24 Java Version: 21.0.5

Issue: Game crashes with ClassCastException in CarryOnDataManager.getCarryData when loading a save. The error appears to be related to casting ServerPlayer objects.

Error Message: java.lang.ClassCastException: class net.minecraft.server.level.ServerPlayer cannot be cast to class tschipp.carryon.common.carry.CarryOnDataManager$ICarrying at tschipp.carryon.common.carry.CarryOnDataManager.getCarryData(CarryOnDataManager.java:33) at tschipp.carryon.CarryOnCommon.onCarryTick(CarryOnCommon.java:102) at tschipp.carryon.events.CommonEvents.onServerTick(CommonEvents.java:182)

Mod List:

Steps to Reproduce:

  1. Launch Minecraft with the above mod list.
  2. Load the save file.
  3. The game crashes with a ClassCastException immediately on load.

Troubleshooting:

Log FIle: ---- Minecraft Crash Report ----.txt

niki142009 commented 1 week ago

this also: " The game crashed whilst unexpected error Error: java.lang.ClassCastException: class net.minecraft.client.player.LocalPlayer cannot be cast to class tschipp.carryon.common.carry.CarryOnDataManager$ICarrying (net.minecraft.client.player.LocalPlayer is in module minecraft@1.21.1 of loader 'TRANSFORMER' @3fcee3d9; tschipp.carryon.common.carry.CarryOnDataManager$ICarrying is in module carryon@2.2.2 of loader 'TRANSFORMER' @3fcee3d9) " i didnt had any other mod