summaryrefslogtreecommitdiff
path: root/common/darkknight/jewelrycraft/block/BlockJewelrsCraftingTable.java
diff options
context:
space:
mode:
authorOnyxDarkKnight <sor1n.iliutza16@gmail.com>2013-12-20 14:48:37 +0200
committerOnyxDarkKnight <sor1n.iliutza16@gmail.com>2013-12-20 14:48:37 +0200
commit94453ef28ff7e8856c19db0b234b5620f53b2a76 (patch)
tree65dfd175c5a5ca4ddc65433dad1ba6d8bb9d9bbc /common/darkknight/jewelrycraft/block/BlockJewelrsCraftingTable.java
parent188150bf829add4418cdbb15f679d705b489ff9e (diff)
Working on stuph
Diffstat (limited to 'common/darkknight/jewelrycraft/block/BlockJewelrsCraftingTable.java')
-rw-r--r--common/darkknight/jewelrycraft/block/BlockJewelrsCraftingTable.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/common/darkknight/jewelrycraft/block/BlockJewelrsCraftingTable.java b/common/darkknight/jewelrycraft/block/BlockJewelrsCraftingTable.java
index 967aa18..e67249c 100644
--- a/common/darkknight/jewelrycraft/block/BlockJewelrsCraftingTable.java
+++ b/common/darkknight/jewelrycraft/block/BlockJewelrsCraftingTable.java
@@ -10,7 +10,6 @@ import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.potion.Potion;
-import net.minecraft.potion.PotionEffect;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.MathHelper;
import net.minecraft.world.IBlockAccess;
@@ -65,14 +64,14 @@ public class BlockJewelrsCraftingTable extends BlockContainer
if (te.hasModifier && entityPlayer.isSneaking())
{
- entityPlayer.inventory.addItemStackToInventory(new ItemStack(te.modifier.itemID, 1, te.modifier.getItemDamage()));
+ entityPlayer.inventory.addItemStackToInventory(te.modifier);
entityPlayer.inventory.onInventoryChanged();
te.modifier = new ItemStack(0, 0, 0);
te.hasModifier = false;
}
if (te.hasJewel && entityPlayer.isSneaking())
{
- entityPlayer.inventory.addItemStackToInventory(new ItemStack(te.jewel.itemID, 1, te.jewel.getItemDamage()));
+ entityPlayer.inventory.addItemStackToInventory(te.jewel);
entityPlayer.inventory.onInventoryChanged();
te.jewel = new ItemStack(0, 0, 0);
te.hasJewel = false;