Fabric: Ticking Entity Crash on Player in relation to keybinds

Created on 12 Jul 2020  ·  8Comments  ·  Source: FabricMC/fabric

Submitting issue here per mod author request Log file is attached to the link. https://www.curseforge.com/minecraft/mc-mods/xaeros-world-map/issues/76

help wanted

All 8 comments

Caused by: java.lang.NoSuchMethodError: net.fabricmc.fabric.mixin.client.keybinding.KeyCodeAccessor.getBoundKey()Lnet/minecraft/class_3675$class_306;

Looks like FabricMC/Mixin#28.

Also note to author to use this hook https://github.com/FabricMC/fabric/blob/a35bc9fe9a0cef448ab418c624ccff808af91086/fabric-key-binding-api-v1/src/main/java/net/fabricmc/fabric/api/client/keybinding/v1/KeyBindingHelper.java#L55 instead of stuff in the mixin package in the future.

It's hard to tell what's going on here because this mod is not visible source.

@liach Thanks for the tip. Somehow missed that. Going to switch to it.
@Prospector I really doubt anything on my end will help. I was simply calling _((KeyCodeAccessor) keyBinding).getKeyCode()_ from _PlayerEntity.tick()_. Going to switch to _KeyBindingHelper.getBoundKeyOf_ but it does the same thing.
EDIT: And I do make sure it's on the client side, btw, if it even matters.

@thexaero is this fixed since this was merged ?

@uiytt I haven't received any other crash reports like this, so probably. I don't know a way to reproduce this though.

Well, can someone close this, and if someone get again this error on the new version, you can re-open this thread.

don't think that's the related issue. it's that impl changed so mod using impl detail breaks.

@liach This was before _KeyCodeAccessor.getBoundKey()_ was renamed, if that's what you mean.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

CamperSamu picture CamperSamu  ·  5Comments

cemerson picture cemerson  ·  3Comments

smbarbour picture smbarbour  ·  4Comments

florensie picture florensie  ·  3Comments

molehzy picture molehzy  ·  3Comments