summaryrefslogtreecommitdiff
path: root/common/darkknight/jewelrycraft/tileentity/TileEntityMolder.java
diff options
context:
space:
mode:
authorOnyxDarkKnight <sor1n.iliutza16@gmail.com>2013-12-17 23:52:19 +0200
committerOnyxDarkKnight <sor1n.iliutza16@gmail.com>2013-12-17 23:52:19 +0200
commit38ac6454b2c88432f1da9474fcceafb9d8ab5e3b (patch)
treec3aabab0d8d375b7b497df171445e6eef611db7d /common/darkknight/jewelrycraft/tileentity/TileEntityMolder.java
parent84dd93f4aac7d3abf1abcec335cd7c3761dd186c (diff)
Sync stuff :)
Diffstat (limited to 'common/darkknight/jewelrycraft/tileentity/TileEntityMolder.java')
-rw-r--r--common/darkknight/jewelrycraft/tileentity/TileEntityMolder.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/common/darkknight/jewelrycraft/tileentity/TileEntityMolder.java b/common/darkknight/jewelrycraft/tileentity/TileEntityMolder.java
index 1e36225..8bf1724 100644
--- a/common/darkknight/jewelrycraft/tileentity/TileEntityMolder.java
+++ b/common/darkknight/jewelrycraft/tileentity/TileEntityMolder.java
@@ -11,7 +11,7 @@ import darkknight.jewelrycraft.item.ItemList;
public class TileEntityMolder extends TileEntity
{
public int cooling;
- public boolean hasMoltenMetal, hasJewelBase, hasMold;
+ public boolean hasMoltenMetal, hasJewelBase, hasMold, isDirty;
public ItemStack mold, jewelBase, moltenMetal, ringMetal;
public TileEntityMolder()
@@ -24,6 +24,7 @@ public class TileEntityMolder extends TileEntity
this.hasJewelBase = false;
this.hasMoltenMetal = false;
this.hasMold = false;
+ this.isDirty = false;
}
@Override
@@ -70,9 +71,13 @@ public class TileEntityMolder extends TileEntity
public void updateEntity()
{
super.updateEntity();
+ if(isDirty){
+ worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);
+ isDirty = true;
+ }
if (moltenMetal.itemID != 0)
{
- this.worldObj.playSoundEffect(xCoord + 0.5F, yCoord + 0.5F, zCoord + 0.5F, "random.fizz", 0.5F, 2.6F + 0.2F * 0.8F);
+ this.worldObj.playSoundEffect(xCoord, yCoord + 0.5F, zCoord, "random.fizz", 0.5F, 1F);
for (int l = 0; l < 2; ++l)
{
//EntityFX entityfx = new EntityReddustFX(this.worldObj, (double)xCoord + Math.random(), (double)yCoord + 0.2D, (double)zCoord + Math.random(), 0.0F, 0.0F, 0.0F);