Описание
# Simply Fixes
A Fabric mod designed to patch a cooldown exploit in the [Simply Swords](https://www.curseforge.com/minecraft/mc-mods/simply-swords) mod.
## Overview
In the original Simply Swords mod, certain weapon abilities had cooldowns that could be bypassed if the player swapped hotbar slots or otherwise interrupted the ability mid-use.
This mod implements robust, server-side fixes to ensure that cooldowns are always applied and mobility states are cleaned up, regardless of how the ability ended.
## Fixed Weapons
This mod currently provides fixes for:
- **Thunderbrand**: Fixes dash cooldown bypass and ensures velocity is reset on completion/interruption.
- **Arcanethyst**: Prevents cooldown bypass and ensures properly timed ability termination.
- **Icewhisper**: Ensures the ice-related ability triggers its cooldown even if the item is swapped out.
## How it Works
The mod uses **Mixins** to inject logic into the weapon item classes:
1. **Usage Tracking**: When an ability starts (`usageTick`), an NBT flag (`simplyswords_fix.active`) is applied to the item stack.
2. **Inventory Monitoring**: The `inventoryTick` method is used to detect if an item with an active flag is no longer being used by the player (e.g., due to a hotbar swap).
3. **Forced Cleanup**: If an "abandoned" ability is detected, the mod manually applies the weapon's cooldown and performs the necessary cleanup (like resetting velocity).
4. **Mainhand Guard Bypass**: It overrides the default `onStoppedUsing` check that often limits cleanup to the main hand, ensuring the fix works even during rapid transitions.
## Requirements
- [Fabric Loader](https://fabricmc.net/)
- [Simply Swords](https://www.curseforge.com/minecraft/mc-mods/simply-swords) (and its dependencies)
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.