Can anybody explain why this doesn't work?
It doesn't give any errors, it just doesn't end up doing anything.
public haven() { // Create a new world with 401x400 cells with a cell size of 1x1 pixels. super(401, 400, 1); for(int y = 0; y <= 400; y++){ for(int x = 0;x <= 401; x++){ if(y <= 100){ addObject(new Water(), x, y); } else if(y > 100 && y <= 250){ addObject(new Dijk(), x, y); } else if(y > 250 && y <= 400){ addObject(new Binnendijk(), x, y); } } } }