I'm trying to make it so that when my boat touches an Island you change worlds. Why isn't this working?
public void checkWorldChange() { Island i = (Island)getOneIntersectingObject(Island.class); if(i != null && Greece2.class.isInstance(getWorld())) { Greenfoot.setWorld(new CirceLand()); } }