diff options
author | Alkalus <draknyte1@hotmail.com> | 2017-11-26 19:09:55 +1000 |
---|---|---|
committer | Alkalus <draknyte1@hotmail.com> | 2017-11-26 19:09:55 +1000 |
commit | f30d9f3ad55ae18cec5e86cc6a7b0124847b9a1f (patch) | |
tree | 1d76ca2d81c614691251c489b2133a628cd7b7d1 /src/Java/gtPlusPlus/core/tileentities | |
parent | 2b28b0849d64b320e42a478f83af6a29c4f28ac1 (diff) | |
download | GT5-Unofficial-f30d9f3ad55ae18cec5e86cc6a7b0124847b9a1f.tar.gz GT5-Unofficial-f30d9f3ad55ae18cec5e86cc6a7b0124847b9a1f.tar.bz2 GT5-Unofficial-f30d9f3ad55ae18cec5e86cc6a7b0124847b9a1f.zip |
% Made the Xp Converter more colourful.
Diffstat (limited to 'src/Java/gtPlusPlus/core/tileentities')
-rw-r--r-- | src/Java/gtPlusPlus/core/tileentities/general/TileEntityXpConverter.java | 15 |
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){ + + } } |