From 37f4669ac46ae4ca8848b8e5b9fdef75c1614867 Mon Sep 17 00:00:00 2001 From: Calclavia Date: Thu, 17 Oct 2013 15:07:11 +0800 Subject: [PATCH] Fixed #42 - Bad buildcraft energy consumption calculation --- Modding-Library | 2 +- src/resonantinduction/battery/TileEntityBattery.java | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Modding-Library b/Modding-Library index 6fa91062..caa413c1 160000 --- a/Modding-Library +++ b/Modding-Library @@ -1 +1 @@ -Subproject commit 6fa910625caaad5f7a01a7526401c7afde072e47 +Subproject commit caa413c164c8f545dc5a7583f5bc3c57dc252b0e diff --git a/src/resonantinduction/battery/TileEntityBattery.java b/src/resonantinduction/battery/TileEntityBattery.java index 08567dec..28544748 100644 --- a/src/resonantinduction/battery/TileEntityBattery.java +++ b/src/resonantinduction/battery/TileEntityBattery.java @@ -58,7 +58,7 @@ public class TileEntityBattery extends TileEntityUniversalElectrical implements if (!this.worldObj.isRemote) { - if (this.ticks == 5 && !structure.isMultiblock) + if (this.ticks == 5 && !this.structure.isMultiblock) { this.update(); } @@ -109,12 +109,12 @@ public class TileEntityBattery extends TileEntityUniversalElectrical implements updateClient(); } - prevStructure = structure; + this.prevStructure = structure; - structure.wroteInventory = false; - structure.didTick = false; + this.structure.wroteInventory = false; + this.structure.didTick = false; - if (playersUsing.size() > 0) + if (this.playersUsing.size() > 0) { updateClient(); }