## 🚀 CLE Beta-v2.3
> **Config Version:** `5`
<details>
<summary>New Features</summary>
### ✨ New Features
- Added new entity-clearing configuration options:
- `protect-stacked-entities`
- `whitelist-all-mobs`
- Added dynamic GUI toggles for:
- Entity-clearing settings
- Lag-prevention settings
- GUI now updates dynamically when settings are toggled, improving responsiveness and usability.
</details>
<details>
<summary>Improvements</summary>
### 🔧 Improvements
- Refactored entity-clearing logic to properly respect:
- Stacked entity protections
- Whitelisted mobs and items
- Consolidated and simplified protection checks within `shouldClearEntity`.
- Improved stacked entity handling in:
- `RoseStackerHook`
- `WildStackerHook`
- Ensured proper stack removal with robust fallback logic for invalid or partially-stacked entities.
- Improved stacking API validation and removed redundant code paths.
- Simplified configuration by reducing mob and item whitelists for cleaner management.
- Improved config and message handling by safely merging defaults with user-defined settings.
- Optimized performance and reduced redundancy across entity-clearing and event handling logic.
</details>
<details>
<summary>Maintenance</summary>
### 🧹 Maintenance & Cleanup
- Fixed a potential memory leak related to notification handling.
- Resolved scheduling issues and improved task cleanup.
- General cleanup and internal refactoring.
</details>
<details>
<summary>Depend Updates</summary>
### 📚 Dependency Updates
- Updated **RoseStacker** to the latest version.
- Added WildStacker and updated to latest version.
- Updated **Adventure** to modern baselines (older `4.26.0` no longer compiled correctly).
</details>
<details>
<summary>Bug Fixes</summary>
### 🪲 Bug Fixes
- Fixed cases where stacked entities were not properly removed or validated.
- Improved fallback behavior for invalid stacked entities.
- Fixed desync issues between GUI toggles and internal entity-clearing / lag-prevention states.
</details>
<details>
<summary>Removed</summary>
### 🗑️ Removed
- Removed `debug.entity-clearing` configuration option.
- Removed all related debug logging across entity-clearing logic and stacking hooks.
- Updated `README` and `config.yml` to reflect the removal of debug settings.
</details>
💡 **Note:** This update introduces a new config version (`5`).
Existing configurations will be automatically merged with new defaults.
Developer information
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle.
maven { name = "Modrinth"; url = "https://api.modrinth.com/maven" }