From b01cf1aa1d3480ad52ee7940f213596bfe6a2090 Mon Sep 17 00:00:00 2001 From: OnyxDarkKnight Date: Sun, 22 Dec 2013 02:07:29 +0200 Subject: Could it be? Could I have fixed it? --- .../jewelrycraft/tileentity/TileEntityJewelrsCraftingTable.java | 5 ++++- common/darkknight/jewelrycraft/tileentity/TileEntityMolder.java | 3 --- common/darkknight/jewelrycraft/tileentity/TileEntitySmelter.java | 4 ---- 3 files changed, 4 insertions(+), 8 deletions(-) (limited to 'common/darkknight/jewelrycraft/tileentity') 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) -- cgit v1.2.3