It's EdwardR's fault

This commit is contained in:
Ellpeck 2016-11-03 22:43:40 +01:00
parent de46e22840
commit 5b5e261181

View file

@ -23,7 +23,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 = 1500; public static final int ENERGY_USE = 5000;
public final EnergyStorage storage = new EnergyStorage(300000); public final EnergyStorage storage = new EnergyStorage(300000);
public int nextRepairTick; public int nextRepairTick;
private int lastEnergy; private int lastEnergy;
@ -87,7 +87,7 @@ public class TileEntityItemRepairer extends TileEntityInventoryBase implements I
if(this.storage.getEnergyStored() >= ENERGY_USE){ if(this.storage.getEnergyStored() >= ENERGY_USE){
this.nextRepairTick++; this.nextRepairTick++;
this.storage.extractEnergy(ENERGY_USE, false); this.storage.extractEnergy(ENERGY_USE, false);
if(this.nextRepairTick >= 2){ if(this.nextRepairTick >= 4){
this.nextRepairTick = 0; this.nextRepairTick = 0;
input.setItemDamage(input.getItemDamage()-1); input.setItemDamage(input.getItemDamage()-1);