Eternal Harvest icon

Eternal Harvest -----

Track and simulate the growth of crops and saplings even offline, with persistent data storage.



Eternal Harvest 1.14
- **Improved `onBlockBreak` Event Handling**:
- Updated the `onBlockBreak` event handler in `PlantListener` to include a database existence check before attempting to remove a record. This ensures that only valid records are removed, preventing unnecessary operations and errors.
- **Database Existence Verification**:
- Added logic to fetch the material associated with the block's location from the database using the `getMaterialAtLocation` method.
- If a corresponding record exists in the database, the record is removed using the `recordRemoval` method.
- If no record is found, the plugin logs a debug message, preventing attempts to delete non-existent records.
- **Improved Debugging Information**:
- Enhanced logging for better debugging, including messages when records are successfully removed or when no record is found for the block being broken.

- **Consistent Record Management**:
- Ensured that the same existence check and removal process are used consistently across various block-related events, including block breaks, explosions, and burning events.
- **Code Refactoring**:
- Refactored the event handling methods to reduce redundancy and improve code readability and maintainability.
- Centralized the logic for database checks and record removal to streamline future updates and bug fixes.
This update enhances the reliability and performance of the plugin by ensuring that database operations are only performed when necessary, reducing potential errors and improving overall efficiency.
----------, Aug 17, 2024
Resource Information
Author:
----------
Total Downloads: 180
First Release: Jul 13, 2024
Last Update: Aug 17, 2024
Category: ---------------
All-Time Rating:
0 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings