Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

Autoeat interacts with blocks #56

Closed
sadboys2001 opened this issue Oct 13, 2018 · 5 comments
Closed

Autoeat interacts with blocks #56

sadboys2001 opened this issue Oct 13, 2018 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@sadboys2001
Copy link

sadboys2001 commented Oct 13, 2018

Expected behavior

Eat the food and not interact with e.g shulkers when facing them.

Actual behavior

Repeatedly opens the shulker while trying to eat.

@zeroeightysix zeroeightysix added the bug Something isn't working label Oct 13, 2018
@zeroeightysix zeroeightysix self-assigned this Oct 14, 2018
@ghost ghost changed the title autoeat opens shulkers/chest when eating Autoeat interacts with TileEntities Oct 23, 2018
@ghost ghost changed the title Autoeat interacts with TileEntities Autoeat interacts with blocks Oct 23, 2018
@nothub
Copy link
Contributor

nothub commented Oct 17, 2019

ugly lazy fix idea: send start sneak packet prior and end sneak packet after eating

@5HT2
Copy link
Contributor

5HT2 commented Oct 17, 2019

I pointed out in my issue a better way to do this would be to tell the game to use the item instead of emulating a right click

@5HT2
Copy link
Contributor

5HT2 commented Apr 10, 2020

Dew figured out how to fix it, look at the commit if you're interested in the fix :p

@5HT2
Copy link
Contributor

5HT2 commented Aug 30, 2020

We fixed this in blue, as you can see in the above commit. It looks like this shouldn't happen in Fabric anymore?

            mc.player.setCurrentHand(Hand.OFF_HAND);
            eating = true;
            KeyBinding.setKeyPressed(((IKeyBinding) mc.options.keyUse).getBoundKey(), true);
            ((IMinecraftClient) mc).callDoAttack();

@zeroeightysix
Copy link
Owner

It looks like this shouldn't happen in Fabric anymore?

I'll test it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants