henkelmax / trade-cycling

The trade cycling functionality of Easy Villagers.
11 stars 6 forks source link

"onRegisterKeyBinds" error #21

Closed J0aoD3v closed 9 months ago

J0aoD3v commented 9 months ago

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