Hello all,
my code is not working in the newest Greenfoot version. Could someone look it up and maybe have an answer for me? It underlines the "Wuerfel.class" and says: "Incompatible types: Inferred types does not conform to equality constraint(s)".
List<Actor> wuerfel = getWorld().getObjects(Wuerfel.class);
Wuerfel wu = (Wuerfel) wuerfel.get(0);
if(testeSpieler() && wu.augen == 6 && Greenfoot.mouseClicked(this))
{
setLocation(4,10);
setRotation(270);
}
