Skip to content

ClassCastException: AirItem cannot be cast to Holder$Reference -- when opening Flashback replay #2239

@Aure1124

Description

@Aure1124

When attempting to open any replay in Flashback (0.39.5) through Sinytra Connector, the game crashes with a ClassCastException. This happens with all replay files, not just specific ones.

Error:
java.lang.ClassCastException: class net.minecraft.world.item.AirItem cannot be cast to class net.minecraft.core.Holder$Reference
at com.moulberry.flashback.Flashback.openReplayWorld(Flashback.java:1165)

Minecraft: 1.21.1
NeoForge: 21.1.231
Sinytra Connector: 2.0.0-beta.14+1.21.1
Flashback: 0.39.5

To reproduce-
Install Flashback via Sinytra Connector on NeoForge 1.21.1
Record any gameplay
Open the replay selection screen and click any replay
Game crashes immediately

I think its a connector problem

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    🆕 New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions