set idle power usage of expanded interface to a power of four

This commit is contained in:
Salomão
2021-06-21 16:25:26 -03:00
parent 42f4ef2855
commit aa5d5e3623
5 changed files with 4 additions and 6 deletions
@@ -621,6 +621,8 @@ public class DualityInterface implements IGridTickable, IStorageMonitorable, IIn
BlockPos blockPos = this.getLocation().getPos();
Platform.spawnDrops( world, blockPos, dropList );
}
this.gridProxy.setIdlePowerUsage( Math.pow( 4, ( this.getInstalledUpgrades( Upgrades.PATTERN_EXPANSION ) ) ) );
}
@Override
@@ -680,11 +680,6 @@ public final class CraftingCPUCluster implements IAECluster, ICraftingCPU
}
}
if (m instanceof DualityInterface )
{
sum *= ( Math.pow( 4, ( (DualityInterface) m ).getInstalledUpgrades( Upgrades.PATTERN_EXPANSION ) ) );
}
// power...
if( eg.extractAEPower( sum, Actionable.MODULATE, PowerMultiplier.CONFIG ) < sum - 0.01 )
{
@@ -164,6 +164,7 @@ public class TileInterface extends AENetworkInvTile implements IGridTickable, II
super.onReady();
this.duality.initialize();
this.getProxy().setIdlePowerUsage( Math.pow( 4, ( this.getInstalledUpgrades( Upgrades.PATTERN_EXPANSION ) ) ) );
}
@Override