New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
my game crashes when i execute enterGui() #5
Comments
could you hand over the stack trace? |
Can you send me your module class too? I had a problem caused by a small thing in it. |
---- Minecraft Crash Report ---- Time: 1/25/21 7:04 PM java.lang.NullPointerException: Rendering screen A detailed walkthrough of the error, its code path and all known details is as follows:-- Head -- |
Settings.animationSpeed might be null? |
It seems you initialized PanelStudio before initializing the settings, thus the setting objects are still null and thus you pass null to the constructor of |
again NullPointerException only in another method. I do not know what to do(
Stacktrace: java.lang.NullPointerException: Rendering screen **fontRender = Minecraft.getMinecraft().fontRenderer |
you didn't override drawString, you need to override it and put Minecraft.getMinecraft().fontRenderer.drawString |
wait you did my bad lol |
instead of fontRenderer have Minecraft.getMinecraft().fontRenderer so it refreshes when the fontRenderer does if it does |
it works! thank you very much |
the console will tell you that the error is in this block of code:
DraggableContainer categoryPanel = new DraggableContainer( "Exploits", null, theme.getPanelRenderer(), new SimpleToggleable(false), new SettingsAnimation(Settings.animationSpeed), null, new Point(10, 10), 100 ); gui.addComponent(categoryPanel);
all the necessary components were inherited from the library classes, there should be no errors.
but on startup I get a gray screen with 5 small squares in the middle lined up in a row.
in a second it disappears and i get a crash
The text was updated successfully, but these errors were encountered: