Skip to content

Commit 5853f9b

Browse files
committed
Fix NPE on Forge error screen
1 parent fac9f6f commit 5853f9b

File tree

1 file changed

+1
-1
lines changed
  • common/src/main/java/org/embeddedt/modernfix/common/mixin/feature/measure_time

1 file changed

+1
-1
lines changed

common/src/main/java/org/embeddedt/modernfix/common/mixin/feature/measure_time/MinecraftMixin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ private void recordReloadEnd(RegistryAccess.RegistryHolder p_238189_1_, Function
4040

4141
@Inject(method = "tick", at = @At("HEAD"))
4242
private void onClientTick(CallbackInfo ci) {
43-
if(this.overlay == null) {
43+
if(this.overlay == null && ModernFixClient.INSTANCE != null) {
4444
ModernFixClient.INSTANCE.onGameLaunchFinish();
4545
}
4646
}

0 commit comments

Comments
 (0)