@Override protected void channelRead0(ChannelHandlerContext ctx, OpenGui msg) throws Exception { EntityPlayer player = FMLClientHandler.instance().getClient().field_71439_g; player.openGui(msg.modId, msg.modGuiId, player.field_70170_p, msg.x, msg.y, msg.z); player.field_71070_bA.field_75152_c = msg.windowId; }
@Override protected void channelRead0(ChannelHandlerContext ctx, OpenGui msg) throws Exception { EntityPlayer player = FMLClientHandler.instance().getClient().thePlayer; player.openGui(msg.modId, msg.modGuiId, player.worldObj, msg.x, msg.y, msg.z); player.openContainer.windowId = msg.windowId; }