Make all mixins abstract
This commit is contained in:
parent
0edbaa69d0
commit
1d22337e5d
|
@ -9,7 +9,7 @@ import org.spongepowered.asm.mixin.injection.Inject;
|
|||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
||||
|
||||
@Mixin(GameRenderer.class)
|
||||
public class RendererMixin {
|
||||
abstract class RendererMixin {
|
||||
@Inject(method = "bobHurt", at = @At("HEAD"), cancellable = true)
|
||||
private void onHurt(PoseStack poseStack, float f, CallbackInfo ci) {
|
||||
if (NoHurtCamera.INSTANCE.getToggled()) ci.cancel();
|
||||
|
|
|
@ -9,7 +9,7 @@ import org.spongepowered.asm.mixin.injection.Inject;
|
|||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
||||
|
||||
@Mixin(TitleScreen.class)
|
||||
public class TitleScreenMixin {
|
||||
abstract class TitleScreenMixin {
|
||||
private static boolean buttonsInitialized = false;
|
||||
private static synchronized void setButtonsInitialized() { buttonsInitialized = true; }
|
||||
@Inject(method = "createNormalMenuOptions", at = @At(value = "RETURN"))
|
||||
|
|
Loading…
Reference in New Issue