From f30d9f3ad55ae18cec5e86cc6a7b0124847b9a1f Mon Sep 17 00:00:00 2001 From: Alkalus Date: Sun, 26 Nov 2017 19:09:55 +1000 Subject: % Made the Xp Converter more colourful. --- .../core/tileentities/general/TileEntityXpConverter.java | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'src/Java/gtPlusPlus/core/tileentities/general') 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){ + + } } -- cgit