Im doing a program where I need to reference a variable to be accessible in another world. Right now its coming up with an error "java.lang.ClassCastException: main menu cannot be cast to Game". The code it says is wrong is "
Just incase you need anymore information this is defined in another world and that is where the actor is located, any help would be appreciated
1 | Game worldref = (Game) getWorld(); |