Mod Menu

Mod Menu

37M Downloads

game crashes, when another mod adds a GridWidget/GridLayout to the pause menu, on 6.1.0-rc.4 1.19.4

fayer3 opened this issue ยท 4 comments

commented

when another mod adds a GridWidget/GridLayout to the pause menu the game crashes, because of a failed cast

as an example, of a mod that does that, we with vivecraft do it, to get two buttons in one button slot.

latest log:
latest.log

crash report:
crash-2023-03-20_13.16.22-client.txt

commented

this worked fine in 1.19.3 btw

commented

affected code

ClickableWidget button = buttons.get(i);

doing a simple typecheck before the cast should prevent the crash
for the moving of stuff you can cast to Widget instead I think.

commented

By any chance can you provide a jar file with this fix? I'm not familiar with compiling java lol

commented

Will be releasing a fix shortly, fixed in d8daccd