ModMenu icon indicating copy to clipboard operation
ModMenu copied to clipboard

a problem when the "badge" of the mod is empty

Open EliSATfe opened this issue 1 year ago • 2 comments

I was using the mod menu to manage my mods and then the game crashed. The log shows a reason

Caused by: java.lang.NullPointerException: Cannot invoke "com.terraformersmc.modmenu.util.mod.Mod$Badge.getText()" because "badge" is null

Output before game crash.txt

EliSATfe avatar Jun 01 '24 09:06 EliSATfe

From what I can tell, the file you've attached is empty. Could a list of mods be posted? Having the mod list would help to better track down the mod that causes the issue.

The source of the issue here is described in #693, and there is a pull request open to fix the issue. The ideal behavior is for Mod Menu to not crash, but one of the other mods you have installed is specifying an unknown badge.

haykam821 avatar Jun 01 '24 21:06 haykam821

Sorry for the late reply. I noticed that there may have been an error while loading a plugin mod for Meteor mod list.txt

EliSATfe avatar Jun 08 '24 10:06 EliSATfe

Version 9.2.0 should fix this issue. The mod that has an unknown badge will be listed in the game logs.

haykam821 avatar Jul 06 '24 03:07 haykam821