Jump to content

[SOLVED][1.7.10] Missing field in actual game but not in dev environment


Recommended Posts

I have created a mod that renders some debug information in-game without the clutter of the whole debug screen, looks like this.

It works perfectly fine when the client is run from inside the IDE. However, once I compile the mod and run it through the Minecraft Launcher, it gives me this error upon loading up a world. https://gist.github.com/BovvzeR11/6acbae432779f5e1c929


I get no errors from the IDE and the field debug exists when looking through the Minecraft class source.


This is the code that I am using to get the Minecraft instance and the debug field. Full mod code here.


	private Minecraft mc;

public OverlayGui()
            mc = FMLClientHandler.instance().getClient();

@SubscribeEvent(priority = EventPriority.NORMAL)
public void renderFPSCU(RenderGameOverlayEvent event)
            String debugString = this.mc.debug;


EDIT: Forgot to add, using Minecraft version 1.7.10, Forge

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.

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.


  • Create New...

Important Information

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