-
Notifications
You must be signed in to change notification settings - Fork 72
Plugin settings button crashes game #314
Comments
I can back this bug up with a Crash Report. On Fabric 0.11.1 Minecraft 1.16.4 there is a crash whenever interacting with the Config in-game |
same here it crash my game when usiing fabric |
any way fix this? |
I believe this is the crash I've just encountered, so I've look at the compiled code and followed the stacktrace backwards. Exception: a Cause: In GuiConfigWaila, the buttons are created with a Code snippets:
public void setMessage(Text text) {
if (!Objects.equals(text.getString(), this.message.getString())) {
this.queueNarration(250);
}
this.message = text;
} options.add(new OptionsEntryButton(Util.createTranslationKey("config", new Identifier(Waila.MODID, "general")), new ButtonWidget(0, 0, 100, 20, /* NPE-causing value */ null, w -> { /* ... */ })))
// and a couple more public OptionsEntryButton(String title, ButtonWidget button) {
this.title = I18n.translate(title);
this.button = button;
// This call is the method that throws an NPE, due to the above code.
button.setMessage(new LiteralText(this.title));
} Solution: Set the default button texts in |
Issue Description:
Note: If this bug occurs in a modpack, please report this to the modpack author. Otherwise, delete this line and add your description here. If this is a feature request, this template does not apply to you. Just delete everything.
When going to change setting in plugin menu my game crashes.
What happens:
My game crashes.
What you expected to happen:
to open the plugin menu.
Steps to reproduce:
...
Affected Versions (Do not use "latest"):
Possible Conflicting Mods (Provide their version, as well)
https://hastebin.com/itobogevas.yaml Logs
The text was updated successfully, but these errors were encountered: