Enhance ability input handling: block movement during ability locks, ensure proper input suppression, and cancel abilities on logout, dimension change, death, and respawn

This commit is contained in:
Kam committed 2026-02-15 23:15:50 -05:00
1 parent 121563ba24
commit 1ed012331b
5 files changed
+116 -7

No files matched your search

@@ -699,6 +699,7 @@ public class PlayerAbilityData implements IPlayerAbilityData {
player.prevPosY = lockedPosY;
player.prevPosZ = lockedPosZ;
player.motionX = 0;
player.motionY = 0; // Full vertical freeze for position lock
player.motionZ = 0;
}
@@ -124,6 +124,8 @@ public class PlayerData implements IExtendedEntityProperties, IPlayerData {
}
public void onLogout() {
// Cancel any executing ability and release all locks
abilityData.interruptCurrentAbility();
this.partyInvites.clear();
this.actionManager.clear();
}