Jump to content

[1.8.9] 'session' has private access in 'net.minecraft.client.Minecraft'


Uselessness

Recommended Posts

Hello, I am currently working on porting a mod from 1.8 to 1.8.9. In the process, I received an error regarding the player's session.

When I hover over the word session on line 44, it tells me "'session' has private access in 'net.minecraft.client.Minecraft'"

In the original mod, there is a .cfg in the META-INF folder to make session public.

I am using IntelliJ and I tried adding a folder named META-INF in src.main.resources.

I made a .cfg stating "public-f net.minecraft.client.Minecraft session # session"

When I exported the mod, the manifest.mf exported blank so I believe that is why the .cfg didn't work either.

 

Here is the class below: (Line 44 is the line of the error)

https://pastebin.com/YuqvVK8z

 

I am new to porting mods and using IntelliJ.

Any help is greating appreciated. Thanks!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.