Trade Cycling

Trade Cycling

10M Downloads

"onRegisterKeyBinds" error

J0aoD3v opened this issue ยท 0 comments

commented

Information

Minecraft version: 1.20.4
Modloader: NeoForge
Forge version: 20.4.48-beta
Environment: Singleplayer

Mod name: Trade Cycling
Mod version: 1.0.8

Description

Hey there! It looks like you're encountering a mod loading error in Minecraft. The crash report indicates that there's an issue with the "Trade Cycling" mod (trade-cycling-neoforge-1.20.4-1.0.8.jar). The error is related to the method ForgeTradeCyclingClientMod.onRegisterKeyBinds in the mod, specifically the argument it takes, which is causing an IllegalArgumentException.

Here's a snippet of the relevant part of the error:

java
Caused by 0: java.lang.IllegalArgumentException: Method public void de.maxhenkel.tradecycling.ForgeTradeCyclingClientMod.onRegisterKeyBinds(net.neoforged.neoforge.client.event.RegisterKeyMappingsEvent) has @SubscribeEvent annotation, but takes an argument that is not valid for this busclass net.neoforged.neoforge.client.event.RegisterKeyMappingsEvent

The error suggests that the method onRegisterKeyBinds in the ForgeTradeCyclingClientMod class has a problem with the argument it receives during the registration of key bindings.

Additionally, the error message indicates that "IModBusEvent events are not allowed on the common NeoForge bus!" and suggests using a mod bus instead.

image

Crash report

<script src="https://gist.github.com/J0aoD3v/12df63d5bec76e7186fd85ab87182367.js"></script>