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

Player entities floating above ground when using Mineflayer emulator #974

Open
phylib opened this issue Nov 7, 2018 · 2 comments
Open
Assignees

Comments

@phylib
Copy link

phylib commented Nov 7, 2018

Title: Player entities floating above ground when using Mineflayer emulator

Glowstone build: 2018.9.0 Release, exact commit c6e1ed01

An emulated player using the mineflayer emulator can't move because it is floating above the ground. To reproduce the issue, try using the example script from the navigate plugin.

When looking to the code, it appears that the PlayerUpdateMessage received from mineflayer contains the correct position (especially is on ground), but Glowstone does not apply this position because it assumes it as invalid in PlayerUpdateHandler line 50.

When removing the if/else construct, mineflayer works perfectly fine. I would propose to adapt the if-clause in line 46. I would do it if nobody can see problems, but I don't know the exact reason for the if/else construct. The commit message only says: "First test for this".

I would love to fix this if someone gives me the OK for adapting the if clause.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@cedws
Copy link
Contributor

cedws commented Nov 7, 2018

If you have a fix then you should submit a PR 👍 we can always discuss the changes once they're submitted.

@Pr0methean
Copy link
Contributor

This sounds like an anti-cheat feature that should only be disabled if the admin wants.

@mastercoms mastercoms self-assigned this Jul 15, 2021
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

No branches or pull requests

4 participants