Fix ClassCastException with other mods' tile entities