This commit is contained in:
Anuken
2021-10-23 09:26:30 -04:00
parent a7c78c4193
commit 88d1165909
3 changed files with 3 additions and 4 deletions
@@ -19,8 +19,7 @@ public abstract class PlanetMesh implements GenericMesh{
public PlanetMesh(){} public PlanetMesh(){}
/** Should be overridden to set up any shader parameters such as planet position, normals, etc. /** Should be overridden to set up any shader parameters such as planet position, normals, etc. */
* @param params*/
public void preRender(PlanetParams params){ public void preRender(PlanetParams params){
} }
@@ -109,7 +109,7 @@ public class OverdriveProjector extends Block{
float realRange = range + phaseHeat * phaseRangeBoost; float realRange = range + phaseHeat * phaseRangeBoost;
charge = 0f; charge = 0f;
indexer.eachBlock(this, realRange, other -> true, other -> other.applyBoost(realBoost(), reload + 1f)); indexer.eachBlock(this, realRange, other -> other.block.canOverdrive, other -> other.applyBoost(realBoost(), reload + 1f));
} }
if(timer(timerUse, useTime) && efficiency() > 0 && consValid()){ if(timer(timerUse, useTime) && efficiency() > 0 && consValid()){
@@ -231,7 +231,7 @@ public class Reconstructor extends UnitBlock{
@Override @Override
public boolean shouldConsume(){ public boolean shouldConsume(){
return constructing(); return constructing() && enabled;
} }
public UnitType unit(){ public UnitType unit(){