Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Release 2.2.0 #747

Merged
merged 13 commits into from
Aug 23, 2024
Merged

Release 2.2.0 #747

merged 13 commits into from
Aug 23, 2024

Conversation

xia-mc
Copy link
Owner

@xia-mc xia-mc commented Aug 23, 2024

Summary by CodeRabbit

  • New Features

    • Introduced a new SprintEvent class to enhance sprinting logic.
    • Added multiple settings in the KillAura and HypixelNoGroundNoFall classes to provide greater customization for combat behavior.
    • Implemented the GrimBoatLongJump and GrimVelocityLongJump classes for improved long jump functionality.
  • Bug Fixes

    • Enhanced error handling in various modules to prevent crashes and improve stability.
  • Improvements

    • Updated the rendering logic for GUI elements for better visual effects.
    • Refined control flow in movement and sprinting logic for a smoother experience.
    • Streamlined event handling by replacing complex structures with simpler conditions.
  • Refactor

    • Improved modularity and readability by consolidating related functionalities and updating existing class names for clarity.
    • Removed deprecated classes and simplified settings management in the movement modules.

xia-mc added 13 commits August 20, 2024 11:31
Add RavenNew mode to TargetHUD
Add blur, lowercase to button option of ClientTheme
Add notWhileMoving to Vulcan mode of Tower
Fix hover option of Scaffold
Fix Hypixel mode of Velocity
Make Mod safer (less crash)
Add 'Safe packet processor' to ExploitFixer
Improve RavenNew mode of TargetHUD
Fix S12PacketEntityVelocityAccessor.java
@xia-mc xia-mc merged commit 9f3da3b into master Aug 23, 2024
2 checks passed
@xia-mc xia-mc deleted the dev branch August 23, 2024 08:18
Copy link

coderabbitai bot commented Aug 23, 2024

Caution

Review failed

The pull request is closed.

Walkthrough

Walkthrough

The changes encompass a range of modifications across various classes in the keystrokesmod package, including enhancements to event handling, error management, and movement mechanics. Key updates feature the introduction of new modules, refinements in method logic, and adjustments to encapsulation using Lombok annotations. The overall changes reflect ongoing development aimed at improving functionality, maintainability, and user configurability within the modding framework.

Changes

Files Change Summary
build.gradle Updated project version from 2.1.1 to 2.2-Dev, indicating a transition to a development version of the software.
src/main/java/keystrokesmod/clickgui/components/impl/ButtonComponent.java Enhanced error handling in the onClick method by adding a try-catch block around the event invocation.
src/main/java/keystrokesmod/event/RotationEvent.java Introduced Lombok annotations for getters and setters, removed explicit getter methods, added a new boolean field smoothBack, and a noSmoothBack method.
src/main/java/keystrokesmod/event/SprintEvent.java Added a new SprintEvent class to manage sprint-related events and encapsulate sprinting state information.
src/main/java/keystrokesmod/mixins/impl/entity/MixinEntityLivingBase.java Updated the jump method to use MoveUtil.jumpMotion() for dynamic jump calculations.
src/main/java/keystrokesmod/mixins/impl/entity/MixinEntityPlayerSP.java Refined logic for stopping sprinting to improve readability and maintainability.
src/main/java/keystrokesmod/mixins/impl/event/MixinEventBus.java New mixin to handle exceptions in event processing more robustly, preventing propagation of unhandled exceptions.
src/main/java/keystrokesmod/mixins/impl/gui/MixinGuiButton.java Enhanced button rendering with smoother hover effects based on FPS and introduced Gaussian blur effects when hovered over.
src/main/java/keystrokesmod/mixins/impl/gui/MixinGuiMainMenu.java Adjusted vertical positioning of main menu buttons for better layout and spacing.
src/main/java/keystrokesmod/mixins/impl/network/MixinNetHandlerPlayClient.java Refactored onPreHandleEntityVelocity to use reflection for packet motion modification, enhancing robustness.
src/main/java/keystrokesmod/mixins/impl/network/MixinNetworkManager.java Added exception handling for packet processing, providing structured feedback on errors in network operations.
src/main/java/keystrokesmod/module/Module.java Improved error handling in lifecycle methods and refined control flow with exception handling.
src/main/java/keystrokesmod/module/impl/combat/KillAura.java Added new settings for enhanced functionality and customization in the combat module.
src/main/java/keystrokesmod/module/impl/combat/KillAuraV2.java Removed call to super.onDisable() in the onDisable method to isolate behavior from the superclass.
src/main/java/keystrokesmod/module/impl/combat/MoreKB.java Refactored to implement the IMoreKB interface, simplifying settings management and movement handling.
src/main/java/keystrokesmod/module/impl/combat/TimerRange.java Transitioned to use a state machine for managing player updates and packet processing.
src/main/java/keystrokesmod/module/impl/combat/morekb/IMoreKB.java Introduced a new abstract class for managing sprinting functionality in combat scenarios.
src/main/java/keystrokesmod/module/impl/combat/morekb/impl/SimpleSprintReset.java Added settings for fine-tuning sprint reset behavior and integrated logic for handling attack events.
src/main/java/keystrokesmod/module/impl/combat/velocity/HypixelVelocity.java Simplified logic in choose method for determining motion values based on incoming packet data.
src/main/java/keystrokesmod/module/impl/exploit/ExploitFixer.java Enhanced packet processing logic to include checks for excessive velocity, improving exploit mitigation.
src/main/java/keystrokesmod/module/impl/exploit/disabler/HypixelDisabler.java Introduced dynamic control over player sprinting with a new event handler.
src/main/java/keystrokesmod/module/impl/exploit/disabler/hypixel/HypixelMotionDisabler.java Added onEnable() method to handle module activation.
src/main/java/keystrokesmod/module/impl/movement/LongJump.java Enhanced LongJump functionality by adding new long jump modes.
src/main/java/keystrokesmod/module/impl/movement/Sprint.java Integrated SprintEvent class to manage sprint conditions more effectively.
src/main/java/keystrokesmod/module/impl/movement/Step.java Consolidated step modes by replacing previous classes with Hypixel15Step.
src/main/java/keystrokesmod/module/impl/movement/fly/MatrixTNTFly.java Refactored event handling from packet reception to direct velocity adjustments.
src/main/java/keystrokesmod/module/impl/movement/fly/Vanilla1Fly.java Added null checks in the flying logic to prevent null pointer exceptions.
src/main/java/keystrokesmod/module/impl/movement/longjump/GrimBoatLongJump.java Introduced specialized long jump functionality when near a boat entity.
src/main/java/keystrokesmod/module/impl/movement/longjump/GrimVelocityLongJump.java Enhanced long jump mechanics with advanced packet handling and customizable settings.
src/main/java/keystrokesmod/module/impl/movement/speed/LegitSpeed.java Changed default value for cpuSpeedUpExploit setting from true to false.
src/main/java/keystrokesmod/module/impl/movement/speed/hypixel/HypixelLowHopSpeed.java Introduced new SliderSetting for off-ground ticks and simplified logic in onPrePlayerInput.
src/main/java/keystrokesmod/module/impl/movement/step/Hypixel15Step.java Renamed class and updated constructor for clarity and versioning.
src/main/java/keystrokesmod/module/impl/other/RotationHandler.java Refined rotation handling logic to ensure smooth rotation events influence player movement more accurately.
src/main/java/keystrokesmod/module/impl/player/AntiVoid.java Changed method from onPreMotion to onRotation, refocusing event handling on rotation events.
src/main/java/keystrokesmod/module/impl/player/Backtrack.java Removed call to super.onDisable() to isolate the Backtrack module's disable behavior.
src/main/java/keystrokesmod/module/impl/player/NoFall.java Added HypixelNoGroundNoFall strategy to existing fall prevention mechanisms.
src/main/java/keystrokesmod/module/impl/player/nofall/HypixelNoGroundNoFall.java Introduced logic to manage no-fall mechanics with customizable settings based on game conditions.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant Game
    participant SprintEvent
    User->>Game: Initiates Sprint
    Game->>SprintEvent: Create SprintEvent Instance
    SprintEvent->>Game: Check Sprinting Conditions
    SprintEvent-->>User: Allow Sprinting
Loading
sequenceDiagram
    participant Player
    participant NoFall
    participant HypixelNoGroundNoFall
    Player->>NoFall: Trigger Fall
    NoFall->>HypixelNoGroundNoFall: Check Fall Distance
    HypixelNoGroundNoFall->>Player: Prevent Fall Damage
Loading

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant