Skip to content

Commit

Permalink
Null-check config keybind
Browse files Browse the repository at this point in the history
  • Loading branch information
embeddedt committed Mar 27, 2024
1 parent 1b52387 commit 66abdcd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ private void clientSetup(FMLClientSetupEvent event) {

@SubscribeEvent
public void onConfigKey(TickEvent.ClientTickEvent event) {
if(event.phase == TickEvent.Phase.START && configKey.consumeClick()) {
if(event.phase == TickEvent.Phase.START && configKey != null && configKey.consumeClick()) {
Minecraft.getInstance().setScreen(new ModernFixConfigScreen(Minecraft.getInstance().screen));
}
}
Expand Down

0 comments on commit 66abdcd

Please sign in to comment.