The game crashes with a ClassCastException when loading a saved world in Minecraft 1.21.1 using the Create mod (v6.0.6). The crash occurs if the player has a Sliding Glass Door item from Create in their inventory and is wearing goggles in the designated Curios goggle slot. Upon reloading the world, the game attempts to render the Goggle Overlay and incorrectly casts the SlidingDoorBlockEntity to IHaveGoggleInformation, resulting in a crash.
To Reproduce
Steps to reproduce the behavior:
- Start a world with Create v6.0.6 and Curios installed
- Place a Sliding Glass Door item in your inventory
- Equip Create goggles in the Curios goggle slot
- Save and exit the world
- Reload the world
- Game crashes with a ClassCastException