summaryrefslogtreecommitdiff
path: root/common/darkknight/jewelrycraft/tileentity
diff options
context:
space:
mode:
authorOnyxDarkKnight <sor1n.iliutza16@gmail.com>2013-12-22 02:07:29 +0200
committerOnyxDarkKnight <sor1n.iliutza16@gmail.com>2013-12-22 02:07:29 +0200
commitb01cf1aa1d3480ad52ee7940f213596bfe6a2090 (patch)
tree75a1c11a4fb4b84297d9dd6b691575e003a37a82 /common/darkknight/jewelrycraft/tileentity
parent6e9f023d2a5d272640149c85a36c7aa05845a984 (diff)
Could it be? Could I have fixed it?
Diffstat (limited to 'common/darkknight/jewelrycraft/tileentity')
-rw-r--r--common/darkknight/jewelrycraft/tileentity/TileEntityJewelrsCraftingTable.java5
-rw-r--r--common/darkknight/jewelrycraft/tileentity/TileEntityMolder.java3
-rw-r--r--common/darkknight/jewelrycraft/tileentity/TileEntitySmelter.java4
3 files changed, 4 insertions, 8 deletions
diff --git a/common/darkknight/jewelrycraft/tileentity/TileEntityJewelrsCraftingTable.java b/common/darkknight/jewelrycraft/tileentity/TileEntityJewelrsCraftingTable.java
index 10fd05d..6eb2212 100644
--- a/common/darkknight/jewelrycraft/tileentity/TileEntityJewelrsCraftingTable.java
+++ b/common/darkknight/jewelrycraft/tileentity/TileEntityJewelrsCraftingTable.java
@@ -11,7 +11,7 @@ public class TileEntityJewelrsCraftingTable extends TileEntity
{
public boolean hasJewel, hasModifier, hasEndItem, isDirty;
public ItemStack jewel, modifier, endItem;
- public int timer;
+ public int timer, effect;
public TileEntityJewelrsCraftingTable()
{
@@ -22,6 +22,7 @@ public class TileEntityJewelrsCraftingTable extends TileEntity
this.hasModifier = false;
this.hasEndItem = false;
this.timer = 0;
+ this.effect = 0;
this.isDirty = false;
}
@@ -33,6 +34,7 @@ public class TileEntityJewelrsCraftingTable extends TileEntity
nbt.setBoolean("hasModifier", hasModifier);
nbt.setBoolean("hasEndItem", hasEndItem);
nbt.setInteger("timer", timer);
+ nbt.setInteger("effect", effect);
NBTTagCompound tag = new NBTTagCompound();
NBTTagCompound tag1 = new NBTTagCompound();
NBTTagCompound tag2 = new NBTTagCompound();
@@ -52,6 +54,7 @@ public class TileEntityJewelrsCraftingTable extends TileEntity
this.hasModifier = nbt.getBoolean("hasModifier");
this.hasEndItem = nbt.getBoolean("hasEndItem");
this.timer = nbt.getInteger("timer");
+ this.effect = nbt.getInteger("effect");
this.jewel = new ItemStack(0, 0, 0);
this.jewel.readFromNBT(nbt.getCompoundTag("jewel"));
this.modifier = new ItemStack(0, 0, 0);
diff --git a/common/darkknight/jewelrycraft/tileentity/TileEntityMolder.java b/common/darkknight/jewelrycraft/tileentity/TileEntityMolder.java
index 608ceb9..d25d369 100644
--- a/common/darkknight/jewelrycraft/tileentity/TileEntityMolder.java
+++ b/common/darkknight/jewelrycraft/tileentity/TileEntityMolder.java
@@ -79,10 +79,7 @@ public class TileEntityMolder extends TileEntity
{
if(worldObj.rand.nextInt(20) == 0) 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);
this.worldObj.spawnParticle("reddust", xCoord + Math.random(), (double) yCoord + 0.2F, zCoord + Math.random(), 0.0D, 1.0D, 1.0D);
- }
}
if (this.hasMoltenMetal && !this.hasJewelBase)
{
diff --git a/common/darkknight/jewelrycraft/tileentity/TileEntitySmelter.java b/common/darkknight/jewelrycraft/tileentity/TileEntitySmelter.java
index d86b4b9..ff396de 100644
--- a/common/darkknight/jewelrycraft/tileentity/TileEntitySmelter.java
+++ b/common/darkknight/jewelrycraft/tileentity/TileEntitySmelter.java
@@ -82,17 +82,13 @@ public class TileEntitySmelter extends TileEntity
if (this.hasMetal)
{
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("flame", xCoord + rand.nextFloat(), (double) yCoord + 0.3F, zCoord + rand.nextFloat(), 0.0D, 0.0D, 0.0D);
- }
}
if (rand.nextInt(65) == 0)
{
double d5 = this.xCoord + rand.nextFloat();
double d7 = this.yCoord;
double d6 = this.zCoord + rand.nextFloat();
- //this.worldObj.spawnParticle("lava", d5, d7, d6, 0.0D, 0.0D, 0.0D);
this.worldObj.playSound(d5, d7, d6, "liquid.lavapop", 0.2F + rand.nextFloat() * 0.2F, 0.9F + rand.nextFloat() * 0.15F, false);
}
if (this.hasMetal)