public boolean checkWaterHeight (World world, int x, int y)
    {
        Tile tile;
        tile = world.getTile(x, y+1);
        if (tile.id == Tile.water.id || tile.id == Tile.flowingWater.id) return false;
        
        int myheight = getHeight(world, x, y);
        tile = world.getTile(x+1, y);
        if (tile.id == Tile.water.id) return false;
        if (tile.id == Tile.flowingWater.id && getHeight(world, x+1, y) > myheight) return false;
        
        tile = world.getTile(x-1, y);
        if (tile.id == Tile.water.id) return false;
        if (tile.id == Tile.flowingWater.id && getHeight(world, x-1, y) > myheight) return false;
        
        world.setTile(x, y, Tile.air);
        return true;
    }