Jump to content

GUI shows then hides [Solved]


Spaceboy Ross

Recommended Posts

7 hours ago, Spaceboy Ross said:

I've attached some files that may be the cause.

Dont post your code as a download use github or the forums in post code tag, it looks like this <>

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Link to comment
Share on other sites

16 minutes ago, Spaceboy Ross said:

Well, I made it easier so people wouldn't have to go looking through github. https://github.com/SpaceboyRoss01/MSGundamMod is the repository.

That gives me a 404 error

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Link to comment
Share on other sites

23 minutes ago, Spaceboy Ross said:

In your GuiProxy class you are returning an instance of Gui and not container. If there is no container component you can just change the currentScreen variable in Minecraft.getMinecraft() on the client.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Link to comment
Share on other sites

5 minutes ago, Spaceboy Ross said:

Changing the variable did nothing. 

Cool you changed it, what did you change it to? (github wasn't updated.)

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Link to comment
Share on other sites

Just now, Spaceboy Ross said:

I haven't updated the github but I changed the code from displayGuiScreen to setting currentScreen in the PacketHumantype class.

You cannot interact with the Minecraft thread directly, you must use Minecraft.getMinecraft().addScheduledTask() on the client and ctx.getServerHandler().player.getServerWorld().addScheduledTask()

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

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.