Skip to content
Closed
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 .bugs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ patched 231097 client gameplay
patched 237493 client basic
patched 242809 client basic
previous 259512 26.3-snapshot-8
patched 263293 client basic
patched 267376 client basic
patched 268420 client basic
patched 280220 client basic
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/*
* Copyright (C) 2026 The Debugify Contributors
*
* SPDX-License-Identifier: LGPL-3.0-or-later
*/
package dev.isxander.debugify.client.mixins.basic.mc263293;

import dev.isxander.debugify.fixes.BugFix;
import dev.isxander.debugify.fixes.FixCategory;
import net.minecraft.client.player.LocalPlayer;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;

@BugFix(id = "MC-263293", category = FixCategory.BASIC, env = BugFix.Env.CLIENT, description = "Dying causes toggle sprint and toggle sneak to untoggle")
@Mixin(LocalPlayer.class)
public abstract class LocalPlayerMixin {
@Inject(method = "respawn", at = @At("HEAD"))
private void debugify$beginRespawn(CallbackInfo ci) {
MC263293.respawning = true;
}

@Inject(method = "respawn", at = @At("TAIL"))
private void debugify$endRespawn(CallbackInfo ci) {
MC263293.respawning = false;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/*
* Copyright (C) 2026 The Debugify Contributors
*
* SPDX-License-Identifier: LGPL-3.0-or-later
*/
package dev.isxander.debugify.client.mixins.basic.mc263293;

public final class MC263293 {
private MC263293() {
}

public static boolean respawning;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/*
* Copyright (C) 2026 The Debugify Contributors
*
* SPDX-License-Identifier: LGPL-3.0-or-later
*/
package dev.isxander.debugify.client.mixins.basic.mc263293;

import dev.isxander.debugify.fixes.BugFix;
import dev.isxander.debugify.fixes.FixCategory;
import net.minecraft.client.ToggleKeyMapping;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;

@BugFix(id = "MC-263293", category = FixCategory.BASIC, env = BugFix.Env.CLIENT, description = "Dying causes toggle sprint and toggle sneak to untoggle")
@Mixin(ToggleKeyMapping.class)
public abstract class ToggleKeyMappingMixin {
@Inject(method = "reset", at = @At("HEAD"), cancellable = true)
private void debugify$preserveToggleStateDuringRespawn(CallbackInfo ci) {
if (MC263293.respawning) {
ci.cancel();
}
}
}
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 @@ -37,6 +37,8 @@
"basic.mc242809.ManageServerScreenMixin",
"basic.mc251068.WorldListEntryMixin",
"basic.mc251068.WorldSelectionListMixin",
"basic.mc263293.LocalPlayerMixin",
"basic.mc263293.ToggleKeyMappingMixin",
"basic.mc267376.CameraMixin",
"basic.mc268420.HudMixin",
"basic.mc280220.DolphinCarryingItemLayerMixin",
Expand Down