Wurst-Imperium / Wurst7

Minecraft Wurst Hacked Client v7
https://www.wurstclient.net/download/?utm_source=GitHub&utm_medium=Wurst+Client&utm_content=Wurst7+GitHub+repo+sidebar+website+link
GNU General Public License v3.0
1.03k stars 418 forks source link

Added if entity is friend sword won't be pulled #890

Closed TejasLamba2006 closed 1 year ago

coderabbitai[bot] commented 1 year ago
Walkthrough ## Walkthrough The changes introduced in this pull request primarily focus on enhancing the functionality of the `AutoSwordHack` class. A new method `isCorrectEntity(Entity entity)` has been added to validate entities before proceeding with the auto sword hack. The `onUpdate()` method has also been updated to incorporate this new validation check. ## Changes | File | Summary | | --- | --- | | `.../hacks/AutoSwordHack.java` | A new method `isCorrectEntity(Entity entity)` has been added to validate entities. The `onUpdate()` method has been updated to use this new method for entity validation. Import statements for `java.util.stream.Stream` and `net.wurstclient.util.EntityUtils` have been added. |

Tips ### Chat with CodeRabbit Bot (`@coderabbitai`) - If you reply to a *review comment* from CodeRabbit, the bot will automatically respond. - To engage with CodeRabbit bot directly around the specific lines of code in the PR, mention @coderabbitai in your review comment - Note: Review comments are made on code diffs or files, not on the PR overview. - Add `@coderabbitai ignore` anywhere in the PR description to prevent this PR from being reviewed. ### 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 a review. This is useful when automatic reviews are disabled for the repository. - `@coderabbitai help` to get help. Note: For conversation with the bot, please use the review comments on code diffs or files. ### CodeRabbit Configration File (`.coderabbit.yaml`) - You can programmatically configure CodeRabbit by adding a `.coderabbit.yaml` file to the root of your repository. - The JSON schema for the configuration file is available [here](https://coderabbit.ai/integrations/coderabbit-overrides.json). - If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: `# yaml-language-server: $schema=https://coderabbit.ai/integrations/coderabbit-overrides.json`
TejasLamba2006 commented 1 year ago

@Alexander01998, Also I found a weird bug if we set priority to sword and we don't have a sword the AXE slot should be second but it takes the second priority to HOES 😆 for some reason

TejasLamba2006 commented 1 year ago

Also the commit successfully compiles and works, cross checked ✔️