Skip to content

Program dependencies in utilities #11

Description

@jfbarras

I would like to discuss removing Program dependencies from the different utilities, eg Block.

public int getLight() {
    if(Program.renderNight) {
        return blockLight;
    }
    else {
        return blockLight > skyLight ? blockLight : skyLight; 
    }
}

would become

public int getLight(boolean renderNight) {
    if (renderNight) {
        return blockLight;
    }
    else {
        return blockLight > skyLight ? blockLight : skyLight; 
    }
}

I do not know how to create a pull request that will touch on multiple files. In the case above, I would need to modify Program.renderRegion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions