use cisien's implementation of fix method isnt needs serverside

This commit is contained in:
Progwml6 committed 2014-02-22 20:45:25 -05:00
1 parent 9a61de0941
commit e126096c1a
1 file changed
+3 -5
+3 -5
View File
@@ -31,15 +31,13 @@ public class Manual extends CraftingItem
}
@Override
@SideOnly(Side.CLIENT)
public ItemStack onItemRightClick (ItemStack stack, World world, EntityPlayer player)
{
player.addStat(TAchievements.achievements.get("tconstruct.beginner"), 1);
Side side = FMLCommonHandler.instance().getEffectiveSide();
if (side.isClient())
{
player.openGui(TConstruct.instance, mantle.client.MProxyClient.manualGuiID, world, 0, 0, 0);
FMLClientHandler.instance().displayGuiScreen(player, new GuiManual(stack, getData(stack)));
}
player.openGui(TConstruct.instance, mantle.client.MProxyClient.manualGuiID, world, 0, 0, 0);
FMLClientHandler.instance().displayGuiScreen(player, new GuiManual(stack, getData(stack)));
return stack;
}