23w07a
This commit is contained in:
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("_"))
|
||||
|
||||
Reference in new issue
Block a user