Fix NPE on Forge error screen

This commit is contained in:
embeddedt 2023-08-03 17:00:30 -04:00
parent fac9f6fac9
commit 5853f9b034
No known key found for this signature in database
GPG Key ID: A69433EC199B5613

View File

@ -40,7 +40,7 @@ public class MinecraftMixin {
@Inject(method = "tick", at = @At("HEAD"))
private void onClientTick(CallbackInfo ci) {
if(this.overlay == null) {
if(this.overlay == null && ModernFixClient.INSTANCE != null) {
ModernFixClient.INSTANCE.onGameLaunchFinish();
}
}