Charm icon indicating copy to clipboard operation
Charm copied to clipboard

Disabling AmethystNoteBlock crashes the game (Charm 4.1.0/MC 1.18.2)

Open chland opened this issue 2 years ago • 0 comments

When I disable the AmethystNoteblock by setting

"AmethystNoteBlock Enabled" = false

in the config-file, the game crashes upon startup. The latest.log doesn't show any meaningful error:

[23:35:23] [main/INFO]: SpongePowered MIXIN Subsystem Version=0.8.5 Source=file:/C:/Users/chlan/AppData/Roaming/gdlauncher_next/datastore/libraries/net/fabricmc/sponge-mixin/0.11.3+mixin.0.8.5/sponge-mixin-0.11.3+mixin.0.8.5.jar Service=Knot/Fabric Env=CLIENT
[23:35:23] [main/INFO]: Compatibility level set to JAVA_17
[23:35:23] [main/INFO]: [MixinConfig] Not adding amethyst_note_block.AddNoteBlockInstrumentMixin
[23:35:23] [main/INFO]: [MixinConfig] Not adding respawn_anchor_in_the_end.CheckIfCanSetSpawnMixin
[23:35:23] [main/INFO]: [MixinConfig] Not adding no_cured_villager_discount.BypassReputationGossipMixin
[23:35:23] [main/INFO]: [MixinConfig] Not adding no_treasure_enchantment_trading.CheckIfTradeableMixin

The crash-report shows this message (IDK how helful this actually is):

java.lang.RuntimeException: Could not execute entrypoint stage 'main' due to errors, provided by 'charm'!
	at net.fabricmc.loader.impl.entrypoint.EntrypointUtils.lambda$invoke0$0(EntrypointUtils.java:51)
	at net.fabricmc.loader.impl.util.ExceptionUtil.gatherExceptions(ExceptionUtil.java:33)
	at net.fabricmc.loader.impl.entrypoint.EntrypointUtils.invoke0(EntrypointUtils.java:49)
	at net.fabricmc.loader.impl.entrypoint.EntrypointUtils.invoke(EntrypointUtils.java:35)
	at net.fabricmc.loader.impl.game.minecraft.Hooks.startClient(Hooks.java:52)
	at net.minecraft.class_310.<init>(class_310.java:452)
	at net.minecraft.client.main.Main.main(Main.java:197)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:452)
	at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
	at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)
Caused by: java.lang.IllegalArgumentException: No enum constant net.minecraft.class_2766.CHARM_AMETHYST
	at java.base/java.lang.Enum.valueOf(Enum.java:273)
	at net.minecraft.class_2766.valueOf(class_2766.java:11)
	at svenhjol.charm.module.amethyst_note_block.AmethystNoteBlock.register(AmethystNoteBlock.java:18)
	at svenhjol.charm.loader.ModuleLoader.lambda$register$0(ModuleLoader.java:46)
	at java.base/java.util.LinkedHashMap.forEach(LinkedHashMap.java:721)
	at svenhjol.charm.loader.ModuleLoader.register(ModuleLoader.java:43)
	at svenhjol.charm.loader.CommonLoader.register(CommonLoader.java:28)
	at svenhjol.charm.loader.ModuleLoader.init(ModuleLoader.java:33)
	at svenhjol.charm.Charm.init(Charm.java:30)
	at svenhjol.charm.Charm.onInitialize(Charm.java:17)
	at net.fabricmc.loader.impl.entrypoint.EntrypointUtils.invoke0(EntrypointUtils.java:47)
	... 11 more

I created a minimal modpack with just these 3 mods:

Minecraft: 1.18.2 Fabric: 0.14.3 Charm: 4.1.0 (charm-fabric-1.18-4.1.0.jar) Fabric-API: 0.51.1 (fabric-api-0.51.1+1.18.2.jar)

The "AmethystNoteBlock Enabled"-line was the only thing i changed in the config.

chland avatar Apr 26 '22 21:04 chland