This commit is contained in:
gnembon committed 2023-02-15 20:10:24 +01:00
1 parent 86a123d2f1
commit a295f81fa9
4 files changed
+5 -5

No files matched your search

@@ -82,7 +82,7 @@ public abstract class MinecraftServer_tickspeedMixin extends ReentrantBlockableE
// could possibly just inject that mspt selection at the beginning of the loop, but then adding all mspt's to
// replace 50L will be a hassle
@Inject(method = "runServer", at = @At(value = "INVOKE", shift = At.Shift.AFTER,
target = "Lnet/minecraft/server/MinecraftServer;updateStatusIcon(Lnet/minecraft/network/protocol/status/ServerStatus;)V"))
target = "Lnet/minecraft/server/MinecraftServer;buildServerStatus()Lnet/minecraft/network/protocol/status/ServerStatus;"))
private void modifiedRunLoop(CallbackInfo ci)
{
while (this.running)
@@ -11,7 +11,7 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
@Mixin(ServerStatus.class)
public class ServerStatus_motdMixin
{
@Inject(method = "getDescription", at = @At("HEAD"), cancellable = true)
@Inject(method = "description", at = @At("HEAD"), cancellable = true)
private void getDescriptionAlternative(CallbackInfoReturnable<Component> cir)
{
if (!CarpetSettings.customMOTD.equals("_"))
@@ -568,7 +568,7 @@ public class ShapesRenderer
text_x = (float) (-textRenderer.width(shape.value.getString()));
}
MultiBufferSource.BufferSource immediate = MultiBufferSource.immediate(builder);
textRenderer.drawInBatch(shape.value, text_x, 0.0F, shape.textcolor, false, matrices.last().pose(), immediate, false, shape.textbck, 15728880);
textRenderer.drawInBatch(shape.value, text_x, 0.0F, shape.textcolor, false, matrices.last().pose(), immediate, Font.DisplayMode.NORMAL, shape.textbck, 15728880);
immediate.endBatch();
matrices.popPose();
RenderSystem.enableCull();