aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/core/tileentities
diff options
context:
space:
mode:
Diffstat (limited to 'src/Java/gtPlusPlus/core/tileentities')
-rw-r--r--src/Java/gtPlusPlus/core/tileentities/general/TileEntityXpConverter.java15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/Java/gtPlusPlus/core/tileentities/general/TileEntityXpConverter.java b/src/Java/gtPlusPlus/core/tileentities/general/TileEntityXpConverter.java
index 98da5a40fc..b886299afd 100644
--- a/src/Java/gtPlusPlus/core/tileentities/general/TileEntityXpConverter.java
+++ b/src/Java/gtPlusPlus/core/tileentities/general/TileEntityXpConverter.java
@@ -24,8 +24,9 @@ public class TileEntityXpConverter extends TileEntity implements IFluidHandler {
public FluidTank tankEssence = new FluidTank((int) (64000*EnchantingUtils.RATIO_MOB_ESSENCE_TO_LIQUID_XP));
public FluidTank tankLiquidXp = new FluidTank(64000);
private boolean needsUpdate = false;
- private int updateTimer = 0;
private boolean mConvertToEssence = true;
+ private int updateTimer = 0;
+ private long mTickTime = 0;
public TileEntityXpConverter() {
}
@@ -204,11 +205,9 @@ public class TileEntityXpConverter extends TileEntity implements IFluidHandler {
public void updateEntity() {
if (this.isServerSide()){
-
- //Utils.LOG_WARNING("Ticking. | mConvertToEssence: "+this.mConvertToEssence);
+ this.mTickTime++;
if (this.needsUpdate) {
-
if (this.updateTimer == 0) {
this.updateTimer = 10; // every 10 ticks it will send an update
} else {
@@ -241,6 +240,14 @@ public class TileEntityXpConverter extends TileEntity implements IFluidHandler {
}
}
}
+ else {
+ }
+ this.worldObj.markBlockForUpdate(this.xCoord, this.yCoord, this.zCoord);
+ this.markDirty();
+
+ if ((this.mTickTime % 20) == 0){
+
+ }
}