Fix realms notification icon offsets (fixes #373)
This commit is contained in:
@@ -0,0 +1,20 @@
|
|||||||
|
//#if MC>=11600
|
||||||
|
package com.replaymod.replay.mixin;
|
||||||
|
|
||||||
|
import net.minecraft.client.gui.screen.TitleScreen;
|
||||||
|
import org.spongepowered.asm.mixin.Mixin;
|
||||||
|
import org.spongepowered.asm.mixin.injection.At;
|
||||||
|
import org.spongepowered.asm.mixin.injection.ModifyArg;
|
||||||
|
|
||||||
|
@Mixin(TitleScreen.class)
|
||||||
|
public abstract class Mixin_MoveRealmsButton {
|
||||||
|
@ModifyArg(
|
||||||
|
method = "init",
|
||||||
|
at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/screen/Screen;init(Lnet/minecraft/client/MinecraftClient;II)V"),
|
||||||
|
index = 2
|
||||||
|
)
|
||||||
|
private int adjustRealmsButton(int height) {
|
||||||
|
return height - (24 - 10) * 4;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//#endif
|
||||||
@@ -5,6 +5,9 @@
|
|||||||
"mixins": [],
|
"mixins": [],
|
||||||
"server": [],
|
"server": [],
|
||||||
"client": [
|
"client": [
|
||||||
|
//#if MC>=11600
|
||||||
|
"Mixin_MoveRealmsButton",
|
||||||
|
//#endif
|
||||||
//#if MC>=11400
|
//#if MC>=11400
|
||||||
"MixinCamera",
|
"MixinCamera",
|
||||||
"MixinInGameHud",
|
"MixinInGameHud",
|
||||||
|
|||||||
Reference in New Issue
Block a user