summaryrefslogtreecommitdiff
path: root/common/darkknight/jewelrycraft/item
diff options
context:
space:
mode:
authorOnyxDarkKnight <sor1n.iliutza16@gmail.com>2014-04-02 17:44:09 +0300
committerOnyxDarkKnight <sor1n.iliutza16@gmail.com>2014-04-02 17:44:09 +0300
commitdbe39cf7e6ddc6c6fd1e639b495a8ac568e081a9 (patch)
tree7d8dd11ff240e350d3495ac8bf297659b4bcb026 /common/darkknight/jewelrycraft/item
parenteb32c0b97d9f3dddace4ffb1a4eb0617e4f63225 (diff)
Fixed some bugs!
Diffstat (limited to 'common/darkknight/jewelrycraft/item')
-rw-r--r--common/darkknight/jewelrycraft/item/ItemGuide.java3
-rw-r--r--common/darkknight/jewelrycraft/item/ItemRing.java3
2 files changed, 2 insertions, 4 deletions
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.");