From dbe39cf7e6ddc6c6fd1e639b495a8ac568e081a9 Mon Sep 17 00:00:00 2001 From: OnyxDarkKnight Date: Wed, 2 Apr 2014 17:44:09 +0300 Subject: Fixed some bugs! --- common/darkknight/jewelrycraft/item/ItemGuide.java | 3 +-- common/darkknight/jewelrycraft/item/ItemRing.java | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'common/darkknight/jewelrycraft/item') diff --git a/common/darkknight/jewelrycraft/item/ItemGuide.java b/common/darkknight/jewelrycraft/item/ItemGuide.java index 7decf67..383ef7b 100644 --- a/common/darkknight/jewelrycraft/item/ItemGuide.java +++ b/common/darkknight/jewelrycraft/item/ItemGuide.java @@ -5,7 +5,6 @@ import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.world.World; import darkknight.jewelrycraft.JewelrycraftMod; -import darkknight.jewelrycraft.container.GuiHandler; public class ItemGuide extends Item { @@ -20,7 +19,7 @@ public class ItemGuide extends Item { if (world.isRemote) { - player.openGui(JewelrycraftMod.instance, GuiHandler.GuiId.guide.ordinal(), player.worldObj, 0, 0, 0); + player.openGui(JewelrycraftMod.instance, 1, player.worldObj, 0, 0, 0); } return stack; 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."); -- cgit v1.2.3