Skip to content

fix MC-242809 #421

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jul 20, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions PATCHED.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
| Basic | [MC-217716](https://bugs.mojang.com/browse/MC-217716) | The green nausea overlay isn't removed when switching into spectator mode |
| Basic | [MC-231097](https://bugs.mojang.com/browse/MC-231097) | Holding the "Use" button continues to slow down the player even after the used item has been dropped |
| Basic | [MC-237493](https://bugs.mojang.com/browse/MC-237493) | Telemetry cannot be disabled |
| Basic | [MC-242809](https://bugs.mojang.com/browse/MC-242809) | IP field in the multiplayer menu will not detect the IP if a space is put at the beginning/end of it |
| Basic | [MC-298558](https://bugs.mojang.com/browse/MC-298558) | Rain fog calculation can overshoot while game is unresponsive |
| Basic | [MC-268420](https://bugs.mojang.com/browse/MC-268420) | Cooldown indicator flashes when switching items with high attack speed attribute |
| Basic | [MC-259512](https://bugs.mojang.com/browse/MC-259512) | Horizontal camera rotation lags when riding |
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
package dev.isxander.debugify.client.mixins.basic.mc242809;

import com.llamalad7.mixinextras.expression.Definition;
import com.llamalad7.mixinextras.expression.Expression;
import com.llamalad7.mixinextras.injector.ModifyExpressionValue;
import dev.isxander.debugify.fixes.BugFix;
import dev.isxander.debugify.fixes.FixCategory;
import net.minecraft.client.gui.screens.DirectJoinServerScreen;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;

@BugFix(id = "MC-242809", category = FixCategory.BASIC, env = BugFix.Env.CLIENT, description = "IP field in the multiplayer menu will not detect the IP if a space is put at the beginning/end of it")
@Mixin(DirectJoinServerScreen.class)
public class DirectJoinServerScreenMixin {
@Definition(id = "ipEdit", field = "Lnet/minecraft/client/gui/screens/DirectJoinServerScreen;ipEdit:Lnet/minecraft/client/gui/components/EditBox;")
@Definition(id = "getValue", method = "Lnet/minecraft/client/gui/components/EditBox;getValue()Ljava/lang/String;")
@Expression("?.? = @(?.ipEdit.getValue())")
@ModifyExpressionValue(method = "onSelect", at = @At("MIXINEXTRAS:EXPRESSION"))
private String trimIpSelect(String ip) {
return ip.trim();
}

@Definition(id = "ipEdit", field = "Lnet/minecraft/client/gui/screens/DirectJoinServerScreen;ipEdit:Lnet/minecraft/client/gui/components/EditBox;")
@Definition(id = "setValue", method = "Lnet/minecraft/client/gui/components/EditBox;setValue(Ljava/lang/String;)V")
@Expression("this.ipEdit.setValue(@(?))")
@ModifyExpressionValue(method = "init", at = @At("MIXINEXTRAS:EXPRESSION"))
private String trimIpInit(String ip) {
return ip.trim();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package dev.isxander.debugify.client.mixins.basic.mc242809;

import com.llamalad7.mixinextras.expression.Definition;
import com.llamalad7.mixinextras.expression.Expression;
import com.llamalad7.mixinextras.injector.ModifyExpressionValue;
import dev.isxander.debugify.fixes.BugFix;
import dev.isxander.debugify.fixes.FixCategory;
import net.minecraft.client.gui.screens.EditServerScreen;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;

@BugFix(id = "MC-242809", category = FixCategory.BASIC, env = BugFix.Env.CLIENT, description = "IP field in the multiplayer menu will not detect the IP if a space is put at the beginning/end of it")
@Mixin(EditServerScreen.class)
public class EditServerScreenMixin {
@Definition(id = "ipEdit", field = "Lnet/minecraft/client/gui/screens/EditServerScreen;ipEdit:Lnet/minecraft/client/gui/components/EditBox;")
@Definition(id = "getValue", method = "Lnet/minecraft/client/gui/components/EditBox;getValue()Ljava/lang/String;")
@Expression("?.? = @(?.ipEdit.getValue())")
@ModifyExpressionValue(method = "onAdd", at = @At("MIXINEXTRAS:EXPRESSION"))
private String trimIp(String ip) {
return ip.trim();
}
}
2 changes: 2 additions & 0 deletions src/client/resources/debugify.client.mixins.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
"basic.mc237493.TelemetryEventInstanceMixin",
"basic.mc237493.TelemetryEventWidgetMixin",
"basic.mc237493.TelemetryInfoScreenMixin",
"basic.mc242809.DirectJoinServerScreenMixin",
"basic.mc242809.EditServerScreenMixin",
"basic.mc263865.KeyboardHandlerMixin",
"basic.mc35361.MinecraftMixin",
"basic.mc298558.AtmosphericFogEnvironmentMixin",
Expand Down