Fixed energy tools using battery boxes capacity tiering
This commit is contained in:
parent
7644aadf80
commit
8b2c78ea3e
1 changed files with 1 additions and 2 deletions
|
@ -7,7 +7,6 @@ import net.minecraft.entity.player.EntityPlayer;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.nbt.NBTTagCompound;
|
import net.minecraft.nbt.NBTTagCompound;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
import resonantinduction.electrical.battery.TileBattery;
|
|
||||||
import universalelectricity.api.CompatibilityModule;
|
import universalelectricity.api.CompatibilityModule;
|
||||||
import universalelectricity.api.UniversalElectricity;
|
import universalelectricity.api.UniversalElectricity;
|
||||||
import universalelectricity.api.energy.UnitDisplay;
|
import universalelectricity.api.energy.UnitDisplay;
|
||||||
|
@ -144,7 +143,7 @@ public class ItemEnergyTool extends ItemTool implements IEnergyItem, IVoltageIte
|
||||||
@Override
|
@Override
|
||||||
public long getEnergyCapacity(ItemStack theItem)
|
public long getEnergyCapacity(ItemStack theItem)
|
||||||
{
|
{
|
||||||
return TileBattery.getEnergyForTier(getTier(theItem));
|
return this.batterySize;
|
||||||
}
|
}
|
||||||
|
|
||||||
public long getTransferRate(ItemStack itemStack)
|
public long getTransferRate(ItemStack itemStack)
|
||||||
|
|
Loading…
Reference in a new issue