- Fix Counter infinite recursion

- Tags Get Packet
- Cooldowns Resetting on Dimension Change / Teleport
This commit is contained in:
KAMKEEL committed 2026-04-20 21:00:54 -04:00
1 parent 1a77728bcd
commit 4a7c7b09c7
4 files changed
+60 -13

No files matched your search

@@ -773,21 +773,21 @@ public class PlayerAbilityData extends AbstractDataAbilities implements IPlayerA
}
/**
* Fully reset ability state when changing dimensions.
* Clears cooldowns so the player can immediately use abilities in the new dimension.
* Fully reset transient ability execution state when changing dimensions.
* Cooldowns are preserved so dimension changes cannot bypass them.
* Keeps active toggles (dimension change shouldn't reset ongoing effects).
*/
public void resetOnDimensionChange() {
trackingAbilityPosition = false;
onEntityReconstructed(true, false);
onEntityReconstructed(false, false);
}
/**
* Reset ability state when a large-distance teleport is detected during execution.
* Same behavior as dimension change — silent cleanup, clear cooldowns, keep toggles.
* Same behavior as dimension change: silent cleanup, preserve cooldowns, keep toggles.
*/
public void resetOnTeleport() {
onEntityReconstructed(true, false);
onEntityReconstructed(false, false);
}
/**