Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make chest swap close inventory because anticheats #4245

Closed
wants to merge 0 commits into from

Conversation

maxsupermanhd
Copy link
Contributor

Type of change

  • Bug fix
  • New feature

Description

On some servers anticheat does not allow attacking entities if you moved inventory without closing inventory first.

How Has This Been Tested?

On latest meteor dev and then with build from unstaged changes, seems like with option enabled anticheat does not block attacks anymore.
Tested on constantiam.

Checklist:

  • My code follows the style guidelines of this project.
  • I have added comments to my code in more complex areas.
  • I have tested the code in both development and production environments.

// Notchian clients send a Close Window packet with Window ID 0 to close their inventory even though there is never an Open Screen packet for the inventory.
var n = mc.getNetworkHandler();
if (n != null) {
n.sendPacket(new CloseHandledScreenC2SPacket(0));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are you checking if the network handler is null, it never will be null here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tbqh idunno, I will go remove it

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fried chicken

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.

3 participants