Updated IC2 integration (fixed special electric item handling).

This commit is contained in:
Florian Nücke 2016-07-02 09:02:40 +02:00
parent ec64dc9eb3
commit 558776941c
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ forestry.version=4.1.0.44
gc.build=3
gc.version=3.0.7
gt.version=5.04.06
ic2.version=2.5.8-ex19
ic2.version=2.5.54-ex19
igwmod.version=1.1.3-18
jei.version=2.28.18.186
mcmp.version=1.2.0_70

View File

@ -42,7 +42,7 @@ object EventHandlerIndustrialCraft2 {
def getDurability(stack: ItemStack): Double = {
stack.getItem match {
case item: ISpecialElectricItem => item.getManager(stack).getCharge(stack) / item.getMaxCharge(stack)
case item: ISpecialElectricItem => item.getManager(stack).getCharge(stack) / item.getManager(stack).getMaxCharge(stack)
case item: IElectricItem => ElectricItem.manager.getCharge(stack) / item.getMaxCharge(stack)
case _ => Double.NaN
}