Fix MixinGuiGameOver init Injection parameters
This commit is contained in:
parent
6a5bdf9023
commit
dbb5d56b74
@ -19,9 +19,11 @@ package baritone.launch.mixins;
|
|||||||
|
|
||||||
import baritone.Baritone;
|
import baritone.Baritone;
|
||||||
import net.minecraft.client.gui.GuiGameOver;
|
import net.minecraft.client.gui.GuiGameOver;
|
||||||
|
import net.minecraft.util.text.ITextComponent;
|
||||||
import org.spongepowered.asm.mixin.Mixin;
|
import org.spongepowered.asm.mixin.Mixin;
|
||||||
import org.spongepowered.asm.mixin.injection.At;
|
import org.spongepowered.asm.mixin.injection.At;
|
||||||
import org.spongepowered.asm.mixin.injection.Inject;
|
import org.spongepowered.asm.mixin.injection.Inject;
|
||||||
|
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Brady
|
* @author Brady
|
||||||
@ -31,7 +33,7 @@ import org.spongepowered.asm.mixin.injection.Inject;
|
|||||||
public class MixinGuiGameOver {
|
public class MixinGuiGameOver {
|
||||||
|
|
||||||
@Inject(method = "<init>", at = @At("RETURN"))
|
@Inject(method = "<init>", at = @At("RETURN"))
|
||||||
private void onInit() {
|
private void onInit(ITextComponent causeOfDeathIn, CallbackInfo ci) {
|
||||||
Baritone.INSTANCE.getGameEventHandler().onPlayerDeath();
|
Baritone.INSTANCE.getGameEventHandler().onPlayerDeath();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user