summaryrefslogtreecommitdiff
path: root/common/darkknight/jewelrycraft/tileentity/TileEntityMolder.java
diff options
context:
space:
mode:
authorOnyxDarkKnight <sor1n.iliutza16@gmail.com>2013-12-16 19:14:29 +0200
committerOnyxDarkKnight <sor1n.iliutza16@gmail.com>2013-12-16 19:14:29 +0200
commita51234bf851a4249b6d884a63b0cfa8bfea6bc0c (patch)
tree673f67ef726079fef89e267b3eafc4e75ce36706 /common/darkknight/jewelrycraft/tileentity/TileEntityMolder.java
parentf9d492fbb509e9e2b4b3a2fcf1ab04e322940bf2 (diff)
Minor changes
Diffstat (limited to 'common/darkknight/jewelrycraft/tileentity/TileEntityMolder.java')
-rw-r--r--common/darkknight/jewelrycraft/tileentity/TileEntityMolder.java17
1 files changed, 9 insertions, 8 deletions
diff --git a/common/darkknight/jewelrycraft/tileentity/TileEntityMolder.java b/common/darkknight/jewelrycraft/tileentity/TileEntityMolder.java
index e52aaf4..600bc0f 100644
--- a/common/darkknight/jewelrycraft/tileentity/TileEntityMolder.java
+++ b/common/darkknight/jewelrycraft/tileentity/TileEntityMolder.java
@@ -69,11 +69,19 @@ public class TileEntityMolder extends TileEntity
public void updateEntity()
{
super.updateEntity();
+ if(moltenMetal.itemID != 0)
+ {
+ this.worldObj.playSoundEffect((double)((float)xCoord + 0.5F), (double)((float)yCoord + 0.5F), (double)((float)zCoord + 0.5F), "random.fizz", 0.5F, 2.6F + 0.2F * 0.8F);
+ 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);
+ this.worldObj.spawnParticle("reddust", (double)xCoord + Math.random(), (double)yCoord + 0.2F, (double)zCoord + Math.random(), 0.0D, 1.0D, 1.0D);
+ }
+ }
if(this.hasMoltenMetal && !this.hasJewelBase)
{
ringMetal = moltenMetal;
if(cooling > 0) this.cooling--;
- System.out.println(mold.getItemDamage());
if(cooling == 0)
{
this.hasMoltenMetal = false;
@@ -82,13 +90,6 @@ public class TileEntityMolder extends TileEntity
this.moltenMetal = new ItemStack(0, 0, 0);
this.hasJewelBase = true;
}
-
- this.worldObj.playSoundEffect((double)((float)xCoord + 0.5F), (double)((float)yCoord + 0.5F), (double)((float)zCoord + 0.5F), "random.fizz", 0.5F, 2.6F + 0.2F * 0.8F);
- for (int l = 0; l < 4; ++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);
- this.worldObj.spawnParticle("reddust", (double)xCoord, (double)yCoord + 0.2F, (double)zCoord, 0.0D, 1.0D, 0.0D);
- }
}
}