diff options
| author | OnyxDarkKnight <sor1n.iliutza16@gmail.com> | 2013-12-16 16:48:38 +0200 |
|---|---|---|
| committer | OnyxDarkKnight <sor1n.iliutza16@gmail.com> | 2013-12-16 16:48:38 +0200 |
| commit | cc775f2b71bd055d32c2a03e9aa42edc1842a503 (patch) | |
| tree | dd156a1a09db94e6a13e2fcb9b6f3f512d6fcfdb | |
| parent | 26d28c9b93133a6cfc5d2544c662e9d77955b6f5 (diff) | |
trying to make the rings work
| -rw-r--r-- | common/darkknight/jewelrycraft/block/BlockMolder.java | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/common/darkknight/jewelrycraft/block/BlockMolder.java b/common/darkknight/jewelrycraft/block/BlockMolder.java index f948e39..f694d10 100644 --- a/common/darkknight/jewelrycraft/block/BlockMolder.java +++ b/common/darkknight/jewelrycraft/block/BlockMolder.java @@ -2,6 +2,7 @@ package darkknight.jewelrycraft.block; import java.util.Random; +import darkknight.jewelrycraft.config.ConfigHandler; import darkknight.jewelrycraft.item.ItemList; import darkknight.jewelrycraft.item.ItemRing; import darkknight.jewelrycraft.tileentity.TileEntityMolder; @@ -103,6 +104,11 @@ public class BlockMolder extends BlockContainer { onBlockDestroyedByPlayer(world, i, j, k, 0); } + + public void giveJewelToPlayer(TileEntityMolder md, EntityPlayer player, ItemStack item, ItemStack metal) + { + player.inventory.addItemStackToInventory(item); + } public void onBlockClicked(World world, int i, int j, int k, EntityPlayer player) { @@ -114,15 +120,6 @@ public class BlockMolder extends BlockContainer me.hasJewelBase = false; } } - - public void giveJewelToPlayer(TileEntityMolder md, EntityPlayer player, ItemStack item, ItemStack metal) - { - if(item.getItem() == ItemList.ring){ - ItemRing ring = new ItemRing(item.itemID, metal); - player.inventory.addItemStackToInventory(new ItemStack(ring)); - } - else player.inventory.addItemStackToInventory(item); - } public boolean shouldSideBeRendered(IBlockAccess iblockaccess, int i, int j, int k, int l) { |
