SKCraft Community

cannot be cast to net.minecraft.entity.player.EntityPlayer

Last updated 7 years, 9 months ago

The Problem

Your game crashes frequently with a "cannot be cast to net.minecraft.entity.player.EntityPlayer" error that involves FTBLibClientEventHandler. The error might look like:

java.lang.ClassCastException: net.minecraft.entity.passive.EntityCow cannot be cast to net.minecraft.entity.player.EntityPlayer
    at ftb.lib.mod.client.FTBLibClientEventHandler.onEntityRightClick(FTBLibClientEventHandler.java:93) ~[FTBLibClientEventHandler.class:?]
    at cpw.mods.fml.common.eventhandler.ASMEventHandler_487_FTBLibClientEventHandler_onEntityRightClick_EntityInteractEvent.invoke(.dynamic) ~[?:?]
    at cpw.mods.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:54) ~[ASMEventHandler.class:?]
    at cpw.mods.fml.common.eventhandler.EventBus.post(EventBus.java:140) [EventBus.class:?]
    at net.minecraft.entity.player.EntityPlayer.func_70998_m(EntityPlayer.java:1122) [yz.class:?]

Solution

Disable the player_options_shortcut option for FTBLib.

You can also instead delete the ftblib.json file in your "local" folder, within your game folder.