forked from Clones/Controlify
🐛 Fix #186
This commit is contained in:
@ -1,7 +1,5 @@
|
|||||||
package dev.isxander.controlify.mixins.feature.chatkbheight;
|
package dev.isxander.controlify.mixins.feature.chatkbheight;
|
||||||
|
|
||||||
import com.llamalad7.mixinextras.injector.ModifyExpressionValue;
|
|
||||||
import com.mojang.blaze3d.vertex.PoseStack;
|
|
||||||
import dev.isxander.controlify.Controlify;
|
import dev.isxander.controlify.Controlify;
|
||||||
import dev.isxander.controlify.controller.Controller;
|
import dev.isxander.controlify.controller.Controller;
|
||||||
import net.minecraft.client.Minecraft;
|
import net.minecraft.client.Minecraft;
|
||||||
@ -24,12 +22,12 @@ public class ChatComponentMixin {
|
|||||||
if (!(minecraft.screen instanceof ChatScreen))
|
if (!(minecraft.screen instanceof ChatScreen))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
graphics.pose().pushPose();
|
||||||
|
|
||||||
Controlify.instance().getCurrentController().ifPresent(controller -> {
|
Controlify.instance().getCurrentController().ifPresent(controller -> {
|
||||||
graphics.pose().pushPose();
|
|
||||||
if (controller.config().chatKeyboardHeight == 0) return;
|
if (controller.config().chatKeyboardHeight == 0) return;
|
||||||
graphics.pose().translate(0, -controller.config().chatKeyboardHeight * minecraft.getWindow().getGuiScaledHeight(), 0);
|
graphics.pose().translate(0, -controller.config().chatKeyboardHeight * minecraft.getWindow().getGuiScaledHeight(), 0);
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Inject(method = "render", at = @At("TAIL"))
|
@Inject(method = "render", at = @At("TAIL"))
|
||||||
|
Reference in New Issue
Block a user