Make Item Repairer and Miner use a little less power

(I guess?)
This commit is contained in:
Ellpeck 2016-11-21 20:25:32 +01:00
parent b24aaa7601
commit 0f86d83e72
2 changed files with 3 additions and 3 deletions

View file

@ -24,7 +24,7 @@ public class TileEntityItemRepairer extends TileEntityInventoryBase implements I
public static final int SLOT_INPUT = 0; public static final int SLOT_INPUT = 0;
public static final int SLOT_OUTPUT = 1; public static final int SLOT_OUTPUT = 1;
public static final int ENERGY_USE = 3500; public static final int ENERGY_USE = 2500;
public final EnergyStorage storage = new EnergyStorage(300000, 6000); public final EnergyStorage storage = new EnergyStorage(300000, 6000);
public int nextRepairTick; public int nextRepairTick;
private int lastEnergy; private int lastEnergy;

View file

@ -32,7 +32,7 @@ import java.util.List;
public class TileEntityMiner extends TileEntityInventoryBase implements ICustomEnergyReceiver, IButtonReactor, IEnergyDisplay{ public class TileEntityMiner extends TileEntityInventoryBase implements ICustomEnergyReceiver, IButtonReactor, IEnergyDisplay{
public static final int ENERGY_USE_PER_BLOCK = 1500; public static final int ENERGY_USE_PER_BLOCK = 650;
public static final int DEFAULT_RANGE = 2; public static final int DEFAULT_RANGE = 2;
public final EnergyStorage storage = new EnergyStorage(200000, 2000); public final EnergyStorage storage = new EnergyStorage(200000, 2000);
public int layerAt = -1; public int layerAt = -1;
@ -93,7 +93,7 @@ public class TileEntityMiner extends TileEntityInventoryBase implements ICustomE
private boolean mine(int range){ private boolean mine(int range){
for(int anX = -range; anX <= range; anX++){ for(int anX = -range; anX <= range; anX++){
for(int aZ = -range; aZ <= range; aZ++){ for(int aZ = -range; aZ <= range; aZ++){
int actualUse = ENERGY_USE_PER_BLOCK*(this.onlyMineOres ? 5 : 1); int actualUse = ENERGY_USE_PER_BLOCK*(this.onlyMineOres ? 3 : 1);
if(this.storage.getEnergyStored() >= actualUse){ if(this.storage.getEnergyStored() >= actualUse){
BlockPos pos = new BlockPos(this.pos.getX()+anX, this.layerAt, this.pos.getZ()+aZ); BlockPos pos = new BlockPos(this.pos.getX()+anX, this.layerAt, this.pos.getZ()+aZ);