Configured

Configured

33M Downloads

[1.18] Crash when accessing ConfigScreen with nightconfigfixes

Tidy-Bear opened this issue ยท 0 comments

commented

A code change is missing when merging Fuzss's compatibility PR into 1.18.X, which causes ClassCastException when initializing ConfigScreen with nightconfigfixes enabled.

Current (1.18.X):

@Override
public IConfigEntry getRoot()
{
return new ForgeFolderEntry("Root", ((ForgeConfigSpec) this.config.getSpec()).getValues(), (ForgeConfigSpec) this.config.getSpec(), true);
}

Expected (1.19.X):

@Override
public IConfigEntry getRoot()
{
return new ForgeFolderEntry(this.spec.getValues(), this.spec);
}

The issue seems to exist in multiloader/1.19.X, too.

Related issue: Fuzss/nightconfigfixes#9