Skip to content

Commit

Permalink
Turns out the compat part wasn't possible
Browse files Browse the repository at this point in the history
  • Loading branch information
Mars committed Apr 23, 2023
1 parent 27ff127 commit 2b85757
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/me/mars/ConfigHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});

Expand Down

0 comments on commit 2b85757

Please sign in to comment.