From 2b85757aaa206232d287439e3325f55e4639d530 Mon Sep 17 00:00:00 2001 From: Mars <> Date: Sun, 23 Apr 2023 18:33:34 +0800 Subject: [PATCH] Turns out the compat part wasn't possible --- src/me/mars/ConfigHandler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/me/mars/ConfigHandler.java b/src/me/mars/ConfigHandler.java index f6d2d63..ce337a4 100644 --- a/src/me/mars/ConfigHandler.java +++ b/src/me/mars/ConfigHandler.java @@ -37,13 +37,13 @@ public class ConfigHandler { public static void init() { // Jank time configFragment = new ModifiedConfigFragment(); + Reflect.set(InputHandler.class, control.input, "config", configFragment); Events.on(EventType.ClientLoadEvent.class, clientLoadEvent -> { - Bridges.queue.add(() -> Reflect.set(InputHandler.class, control.input, "config", configFragment)); Timer.schedule(() -> { if (control.input.config != configFragment) { Log.warn("ConfigFragment was not set. Some mod replacing something perhaps?"); - Log.info("Current InputHandler: @\n ConfigFragment: @", control.input, control.input.config); } + Log.info("Current InputHandler: @\n ConfigFragment: @", control.input, control.input.config); }, 10f); });