fix: Retreive managers from correct SmoothChunks instance

This commit is contained in:
TopchetoEU 2022-09-21 10:32:04 +03:00
parent 8b319f3839
commit 2c6c230ef4
No known key found for this signature in database
GPG Key ID: 0F2543CA49C81E3A

View File

@ -146,11 +146,9 @@ public final class SmoothChunks implements ClientModInitializer, ModMenuApi {
}
@Override
public ConfigScreenFactory<?> getModConfigScreenFactory() {
return new ConfigScreenFactory<Screen>() {
@Override
public Screen create(Screen parent) {
return new SmoothChunksScreen(parent, animation, ease, config);
}
return (Screen parent) -> {
var _this = getInstance();
return new SmoothChunksScreen(parent, _this.animation, _this.ease, _this.config);
};
}
}