Skip to content

Fix mixin crash and whole module lol#21

Merged
omtoi101 merged 7 commits into
feature/auto-elytra-repairfrom
fix-mixin-crash
Sep 25, 2025
Merged

Fix mixin crash and whole module lol#21
omtoi101 merged 7 commits into
feature/auto-elytra-repairfrom
fix-mixin-crash

Conversation

@omtoi101

Copy link
Copy Markdown
Owner

No description provided.

google-labs-jules Bot and others added 7 commits September 22, 2025 08:44
Removes the emergency disconnect functionality from the Auto Elytra Repair module.

The module will no longer disconnect the player if it fails to find a safe landing spot after a set number of attempts. Instead, it will now continuously expand its search radius and keep trying to find a landing spot indefinitely.

This change also fixes a bug where the expanding search radius was calculated but not correctly used in the landing spot search function.
The `PlayerInventoryAccessor` mixin was using an explicit field name in the `@Accessor` annotation, which caused a runtime error after a Minecraft update.

By removing the explicit field name, the Mixin framework can now correctly infer the target field from the accessor method's name, making the code more robust and resilient to future updates.
This commit overhauls the auto-repair and flight resume systems to be more robust and efficient.

Key changes:
- The elytra repair logic now continuously throws XP bottles until the elytra is fully repaired or the player runs out of bottles, replacing the old inefficient timer-based system.
- The takeoff sequence after a repair is now managed by a state machine that checks the player's vertical velocity, making it more reliable than the previous timer-based implementation.
- A new "climbing" state has been added to the flight controller. After a repair, the bot will now climb back to the target flight altitude before resuming its path.
- The default flight altitude has been changed to 160 blocks as requested.
- A compilation error related to accessing a private field in `PlayerInventory` has been fixed.
This commit overhauls the auto-repair and flight resume systems to be more robust and efficient.

Key changes:
- The elytra repair logic now continuously throws XP bottles until the elytra is fully repaired or the player runs out of bottles, replacing the old inefficient timer-based system.
- The takeoff sequence after a repair is now managed by a state machine that checks the player's vertical velocity, making it more reliable than the previous timer-based implementation.
- A new "climbing" state has been added to the flight controller. After a repair, the bot will now climb back to the target flight altitude before resuming its path.
- The default flight altitude has been changed to 160 blocks as requested.
- A compilation error related to accessing a private field in `PlayerInventory` has been fixed.
- Fixed a `NullPointerException` caused by a missing null check when accessing the `autoElytraRepair` module.
This commit overhauls the auto-repair and flight resume systems and fixes a critical bug in the safe landing logic.

Key changes:
- The safe landing logic in `SafeLandingSpotFinder.java` has been fixed to explicitly check for water, preventing the bot from landing in oceans.
- The elytra repair logic now continuously throws XP bottles until the elytra is fully repaired or the player runs out of bottles.
- The takeoff sequence after a repair is now managed by a state machine that checks the player's vertical velocity, making it more reliable.
- A new "climbing" state has been added to the flight controller to ensure the bot returns to the target flight altitude after repairs.
- The default flight altitude has been changed to 160 blocks as requested.
- Fixed a `NullPointerException` caused by a missing null check.
This commit addresses several issues with the auto-repair system, including fixing a crash, preventing ocean landings, and making the flight resume process more reliable.

Key changes:
- Fixed a bug that caused the bot to get stuck during descent by ensuring movement is active during the landing sequence.
- Added an explicit check for water in `SafeLandingSpotFinder.java` to prevent the bot from landing in oceans.
- Refactored the elytra repair logic to continuously use XP bottles until the elytra is fully repaired.
- Overhauled the takeoff sequence to be state-based instead of timer-based for better reliability.
- Added a "climbing" state to ensure the bot returns to the target flight altitude after repairs.
- Set the default flight altitude to 160 as requested.
- Fixed an initial `InvalidAccessorException` crash and a subsequent `NullPointerException`.
@omtoi101 omtoi101 merged commit f5d517b into feature/auto-elytra-repair Sep 25, 2025
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant