diff options
| author | OnyxDarkKnight <sor1n.iliutza16@gmail.com> | 2014-04-02 17:44:09 +0300 |
|---|---|---|
| committer | OnyxDarkKnight <sor1n.iliutza16@gmail.com> | 2014-04-02 17:44:09 +0300 |
| commit | dbe39cf7e6ddc6c6fd1e639b495a8ac568e081a9 (patch) | |
| tree | 7d8dd11ff240e350d3495ac8bf297659b4bcb026 /common/darkknight/jewelrycraft/item/ItemRing.java | |
| parent | eb32c0b97d9f3dddace4ffb1a4eb0617e4f63225 (diff) | |
Fixed some bugs!
Diffstat (limited to 'common/darkknight/jewelrycraft/item/ItemRing.java')
| -rw-r--r-- | common/darkknight/jewelrycraft/item/ItemRing.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/common/darkknight/jewelrycraft/item/ItemRing.java b/common/darkknight/jewelrycraft/item/ItemRing.java index 92416f4..3824edb 100644 --- a/common/darkknight/jewelrycraft/item/ItemRing.java +++ b/common/darkknight/jewelrycraft/item/ItemRing.java @@ -14,7 +14,6 @@ import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import darkknight.jewelrycraft.JewelrycraftMod; import darkknight.jewelrycraft.block.BlockList; -import darkknight.jewelrycraft.container.GuiHandler; import darkknight.jewelrycraft.util.JewelryNBT; import net.minecraft.block.Block; @@ -203,7 +202,7 @@ public class ItemRing extends Item int id = world.getBlockId(i, j, k); if (id != 0 && Block.blocksList[id] != null && Block.blocksList[id].blockID == Block.chest.blockID){ TileEntity tile = world.getBlockTileEntity(i, j, k); - if (tile != null && tile instanceof TileEntityChest) FMLNetworkHandler.openGui(player, JewelrycraftMod.instance, GuiHandler.GuiId.ringChest.ordinal(), world, i, j, k); + if (tile != null && tile instanceof TileEntityChest) FMLNetworkHandler.openGui(player, JewelrycraftMod.instance, 0, world, i, j, k); } } else if(i != -1 && j != -1 && k != -1) player.addChatMessage("Chest out of range! You need to be " + ((int)player.getDistance(i + 0.5F, j + 0.5F, k + 0.5F) - 127) + " blocks closer."); |
