I just downloaded Greenfoot 3.0.2 today and wanted to edit one of my older scenarios, where at one point an actor accesses a method from another actor. It worked fine before the update but now it says the method doesn't exists. Here's the code of the two actors (the one accessing the method is called Building, the other is called Ground):
Method in Building:
public int getGround() {
setLocation(getX(), getY() + 16);
int givenType;
if(isTouching(Ground.class) == true) {
givenType = getOneIntersectingObject(Ground.class).getType(); //Here is the error
} else {
givenType = 0;
}
setLocation(getX(), getY() - 16);
return givenType;
}
Method in Ground:
public int getType() {
return type;
}
And yes, all the variables used in the methods exist.

