BuildCraft|Core

BuildCraft|Core

7M Downloads

Split implementation of "energy requested" trigger

SpaceToad opened this issue ยท 0 comments

commented

Looking at "PipeWoodPower":

    public boolean requestsPower() {
        if (full) {
            boolean request = mjStored < 1500 / 2;

            if (request) {
                full = false;
            }

            return request;
        }

        full = mjStored >= 1500 - 10;

        return !full;
    }

it's just computing if there's energy room available in the wooden pipe. That is even if there is no energy requested per see. This is particularly visible with robot stations requesting energy, which means that power system may request or not.

We should have an "energy storage available" for wooden pipes and put "energy requested" trigger back to what it intuitively means.