Fixed ConsumeGenerator 'kickstarting'

This commit is contained in:
Anuken
2021-12-04 09:16:15 -05:00
parent c8fb0c2e76
commit f89f460b47
5 changed files with 20 additions and 8 deletions

View File

@@ -510,6 +510,7 @@ abstract class BuildingComp implements Posc, Teamc, Healthc, Buildingc, Timerc,
public void created(){}
/** @return whether this block is currently "active" and should be consuming requirements. */
public boolean shouldConsume(){
return enabled;
}
@@ -518,6 +519,11 @@ abstract class BuildingComp implements Posc, Teamc, Healthc, Buildingc, Timerc,
return true;
}
/** @return whether this building is currently "burning" a trigger consumer (an item) - if true, valid() on those will return true. */
public boolean consumeTriggerValid(){
return false;
}
public float getPowerProduction(){
return 0f;
}