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

+2 -2
View File
@@ -4,10 +4,10 @@ org.gradle.jvmargs=-Xmx1G
# Fabric Properties # Fabric Properties
# check these on https://fabricmc.net/use # check these on https://fabricmc.net/use
# or better: https://modmuss50.me/fabric.html # or better: https://modmuss50.me/fabric.html
minecraft_version=23w06a minecraft_version=23w07a
loader_version=0.14.14 loader_version=0.14.14
jsr305_version=3.0.2 jsr305_version=3.0.2
fabric_version=0.73.5+1.19.4 fabric_version=0.74.0+1.19.4
# Mod Properties # Mod Properties
mod_version = 1.4.97 mod_version = 1.4.97
@@ -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 // 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 // replace 50L will be a hassle
@Inject(method = "runServer", at = @At(value = "INVOKE", shift = At.Shift.AFTER, @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) private void modifiedRunLoop(CallbackInfo ci)
{ {
while (this.running) while (this.running)
@@ -11,7 +11,7 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
@Mixin(ServerStatus.class) @Mixin(ServerStatus.class)
public class ServerStatus_motdMixin 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) private void getDescriptionAlternative(CallbackInfoReturnable<Component> cir)
{ {
if (!CarpetSettings.customMOTD.equals("_")) if (!CarpetSettings.customMOTD.equals("_"))
@@ -568,7 +568,7 @@ public class ShapesRenderer
text_x = (float) (-textRenderer.width(shape.value.getString())); text_x = (float) (-textRenderer.width(shape.value.getString()));
} }
MultiBufferSource.BufferSource immediate = MultiBufferSource.immediate(builder); 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(); immediate.endBatch();
matrices.popPose(); matrices.popPose();
RenderSystem.enableCull(); RenderSystem.enableCull();