mirror of
https://github.com/Wurst-Imperium/Wurst7.git
synced 2024-09-19 17:02:13 +02:00
Fix crash when Minecraft is in demo mode
Fixes https://wurstforum.net/d/465
This commit is contained in:
parent
d25bc74eff
commit
c3c346727d
@ -34,8 +34,12 @@ public abstract class TitleScreenMixin extends Screen
|
||||
super(title);
|
||||
}
|
||||
|
||||
@Inject(at = @At("RETURN"), method = "init()V")
|
||||
private void onInitWidgetsNormal(CallbackInfo ci)
|
||||
/**
|
||||
* Adds the AltManager button to the title screen. This mixin must not
|
||||
* run in demo mode, as the Realms button doesn't exist there.
|
||||
*/
|
||||
@Inject(at = @At("RETURN"), method = "initWidgetsNormal(II)V")
|
||||
private void onInitWidgetsNormal(int y, int spacingY, CallbackInfo ci)
|
||||
{
|
||||
if(!WurstClient.INSTANCE.isEnabled())
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user