From 2c6c230ef496fce36e84acec52ee024541d11d32 Mon Sep 17 00:00:00 2001 From: TopchetoEU <36534413+TopchetoEU@users.noreply.github.com> Date: Wed, 21 Sep 2022 10:32:04 +0300 Subject: [PATCH] fix: Retreive managers from correct SmoothChunks instance --- .../java/me/topchetoeu/smoothchunks/SmoothChunks.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/main/java/me/topchetoeu/smoothchunks/SmoothChunks.java b/src/main/java/me/topchetoeu/smoothchunks/SmoothChunks.java index d9e685a..9bcd06a 100644 --- a/src/main/java/me/topchetoeu/smoothchunks/SmoothChunks.java +++ b/src/main/java/me/topchetoeu/smoothchunks/SmoothChunks.java @@ -146,11 +146,9 @@ public final class SmoothChunks implements ClientModInitializer, ModMenuApi { } @Override public ConfigScreenFactory getModConfigScreenFactory() { - return new ConfigScreenFactory() { - @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); }; } }