Fix NPE on Forge error screen
This commit is contained in:
parent
fac9f6fac9
commit
5853f9b034
|
|
@ -40,7 +40,7 @@ public class MinecraftMixin {
|
||||||
|
|
||||||
@Inject(method = "tick", at = @At("HEAD"))
|
@Inject(method = "tick", at = @At("HEAD"))
|
||||||
private void onClientTick(CallbackInfo ci) {
|
private void onClientTick(CallbackInfo ci) {
|
||||||
if(this.overlay == null) {
|
if(this.overlay == null && ModernFixClient.INSTANCE != null) {
|
||||||
ModernFixClient.INSTANCE.onGameLaunchFinish();
|
ModernFixClient.INSTANCE.onGameLaunchFinish();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user