Architectury API (UNUSED)

Architectury API (UNUSED)

9M Downloads

Apotheosis / Architectury Conflict

dheoxic opened this issue ยท 3 comments

commented

Not sure if this is on architectury or apotheosis

Loader: Neoforge 21.1.94
Game Version: 1.21.1

Thread: Render thread
Stacktrace:
	at TRANSFORMER/[email protected]/dev.architectury.impl.RegistrySupplierImpl.getKey(RegistrySupplierImpl.java) ~[architectury-13.0.8-neoforge.jar%23599!/:?] {re:classloading}
-- Mod loading issue for: apotheosis --
Details:
	Mod file: /G:/CurseForge/minecraft/Instances/Neo/mods/Apotheosis-1.21.1-8.1.2.jar
	Failure message: Apotheosis (apotheosis) encountered an error while dispatching the net.neoforged.fml.event.lifecycle.FMLCommonSetupEvent event
		java.lang.IncompatibleClassChangeError: Conflicting default methods: dev/architectury/registry/registries/DeferredSupplier.getKey net/neoforged/neoforge/common/extensions/IHolderExtension.getKey
	Mod version: 8.1.2
	Mod issues URL: <No issues URL found>
	Exception message: java.lang.IncompatibleClassChangeError: Conflicting default methods: dev/architectury/registry/registries/DeferredSupplier.getKey net/neoforged/neoforge/common/extensions/IHolderExtension.getKey
Stacktrace:
	at TRANSFORMER/[email protected]/dev.architectury.impl.RegistrySupplierImpl.getKey(RegistrySupplierImpl.java) ~[architectury-13.0.8-neoforge.jar%23599!/:?] {re:classloading}
	at TRANSFORMER/[email protected]/dev.architectury.registry.registries.forge.RegistrarManagerImpl$RegistrarImpl$1.getKey(RegistrarManagerImpl.java:291) ~[architectury-13.0.8-neoforge.jar%23599!/:?] {re:classloading}
	at TRANSFORMER/[email protected]/dev.shadowsoffire.apotheosis.util.NameHelper.load(NameHelper.java:383) ~[Apotheosis-1.21.1-8.1.2.jar%23591!/:8.1.2] {re:classloading}
	at TRANSFORMER/[email protected]/dev.shadowsoffire.apotheosis.Apotheosis.loadConfig(Apotheosis.java:239) ~[Apotheosis-1.21.1-8.1.2.jar%23591!/:8.1.2] {re:classloading}
	at TRANSFORMER/[email protected]/dev.shadowsoffire.apotheosis.Apotheosis.setup(Apotheosis.java:143) ~[Apotheosis-1.21.1-8.1.2.jar%23591!/:8.1.2] {re:classloading}
	at MC-BOOTSTRAP/net.neoforged.bus/net.neoforged.bus.EventBus.post(EventBus.java:350) ~[bus-8.0.2.jar%23121!/:?] {}
	at MC-BOOTSTRAP/net.neoforged.bus/net.neoforged.bus.EventBus.post(EventBus.java:315) ~[bus-8.0.2.jar%23121!/:?] {}
	at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.ModContainer.acceptEvent(ModContainer.java:158) ~[loader-4.0.34.jar%23112!/:4.0] {re:mixin}
	at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.ModLoader.lambda$dispatchParallelEvent$4(ModLoader.java:172) ~[loader-4.0.34.jar%23112!/:4.0] {re:mixin}
	at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.ModLoader.lambda$dispatchParallelTask$7(ModLoader.java:231) ~[loader-4.0.34.jar%23112!/:4.0] {re:mixin}
	at java.base/java.util.concurrent.CompletableFuture.uniHandle(CompletableFuture.java:934) ~[?:?] {re:mixin}
	at java.base/java.util.concurrent.CompletableFuture$UniHandle.tryFire(CompletableFuture.java:911) ~[?:?] {}
	at java.base/java.util.concurrent.CompletableFuture$Completion.exec(CompletableFuture.java:483) ~[?:?] {}
	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) ~[?:?] {}
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) ~[?:?] {}
	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) ~[?:?] {re:mixin,re:computing_frames}
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) ~[?:?] {re:mixin,re:computing_frames}
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) ~[?:?] {re:mixin}
commented

I am running into this same issue porting Simply Swords to 1.21.1.
getKey() defaulted method name is conflicting between NeoForge and Architectury ๐Ÿ˜ž

commented

To anyone who is looking for a solution to this error:
Apotheosis and Architecture API alone do not conflict with each other. The problem is caused by other mods that the log does not show. If you encounter this error and are developing your modpack, I recommend running the game, adding one mod at a time to identify the one causing the problem. In my case was by Mining Utility.