summaryrefslogtreecommitdiff
path: root/common/darkknight/jewelrycraft/block/BlockJewelrsCraftingTable.java
diff options
context:
space:
mode:
authorOnyxDarkKnight <sor1n.iliutza16@gmail.com>2013-12-21 20:03:05 +0200
committerOnyxDarkKnight <sor1n.iliutza16@gmail.com>2013-12-21 20:03:05 +0200
commitcaff6f5dc8c11632b88c54995cbd44eeb8eb856f (patch)
treeb2889cc1235f0c0e171b8cd139e347c9decb0169 /common/darkknight/jewelrycraft/block/BlockJewelrsCraftingTable.java
parent8e3546bfaf49e0e7805cb43e69cd2d3996ea484b (diff)
Trying to fix bugs
Diffstat (limited to 'common/darkknight/jewelrycraft/block/BlockJewelrsCraftingTable.java')
-rw-r--r--common/darkknight/jewelrycraft/block/BlockJewelrsCraftingTable.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/common/darkknight/jewelrycraft/block/BlockJewelrsCraftingTable.java b/common/darkknight/jewelrycraft/block/BlockJewelrsCraftingTable.java
index 30daab2..4d40d5c 100644
--- a/common/darkknight/jewelrycraft/block/BlockJewelrsCraftingTable.java
+++ b/common/darkknight/jewelrycraft/block/BlockJewelrsCraftingTable.java
@@ -72,13 +72,13 @@ public class BlockJewelrsCraftingTable extends BlockContainer
if (te.hasModifier && entityPlayer.isSneaking())
{
- dropItem( world, (double)te.xCoord, (double)te.yCoord, (double)te.zCoord, te.modifier);
+ dropItem( world, (double)te.xCoord, (double)te.yCoord, (double)te.zCoord, te.modifier.copy());
te.modifier = new ItemStack(0, 0, 0);
te.hasModifier = false;
}
if (te.hasJewel && entityPlayer.isSneaking())
{
- dropItem(world, (double)te.xCoord, (double)te.yCoord, (double)te.zCoord, te.jewel);
+ dropItem(world, (double)te.xCoord, (double)te.yCoord, (double)te.zCoord, te.jewel.copy());
te.jewel = new ItemStack(0, 0, 0);
te.hasJewel = false;
}
@@ -102,8 +102,8 @@ public class BlockJewelrsCraftingTable extends BlockContainer
TileEntityJewelrsCraftingTable te = (TileEntityJewelrsCraftingTable) world.getBlockTileEntity(i, j, k);
if (te != null)
{
- if(te.hasModifier) dropItem(world, (double)te.xCoord, (double)te.yCoord, (double)te.zCoord, te.modifier);
- if(te.hasJewel) dropItem(world, (double)te.xCoord, (double)te.yCoord, (double)te.zCoord, te.jewel);
+ if(te.hasModifier) dropItem(world, (double)te.xCoord, (double)te.yCoord, (double)te.zCoord, te.modifier.copy());
+ if(te.hasJewel) dropItem(world, (double)te.xCoord, (double)te.yCoord, (double)te.zCoord, te.jewel.copy());
if(te.hasEndItem) giveJewelToPlayer(te, te.endItem, te.modifier);
}
super.breakBlock(world, i, j, k, par5, par6);
@@ -114,7 +114,7 @@ public class BlockJewelrsCraftingTable extends BlockContainer
if (item != null)
{
ItemRing.addEffect(item, Potion.fireResistance.id);
- dropItem(cf.worldObj, (double)cf.xCoord, (double)cf.yCoord, (double)cf.zCoord, item);
+ dropItem(cf.worldObj, (double)cf.xCoord, (double)cf.yCoord, (double)cf.zCoord, item.copy());
}
}