Null-check config keybind
This commit is contained in:
parent
1b52387cfa
commit
66abdcd9a7
|
|
@ -55,7 +55,7 @@ public class ModernFixClientForge {
|
|||
|
||||
@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));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user