You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The key services in (neoforge.)mods.toml was introduced in MinecraftForge 37.0.0, the 1.17.1 update. It uses a new class ModJarMetadata to implement this by using ModuleDescriptor.Builder.uses.
However, the Builder was created by newAutomaticModule, which doesn't allow calling uses:
publicModuleDescriptor$Builderuses(Stringservice) {
if (this.automatic) {
thrownewIllegalStateException("Automatic modules can not declare service dependences");
} elseif (this.uses.contains(Checks.requireServiceTypeName(service))) {
thrownewIllegalStateException("Dependence upon service " + service + " already declared");
} else {
this.uses.add(service);
returnthis;
}
}
(Taken from decompiled OpenJDK 21 (using FernFlower decompiler), but it's same for OpenJDK 16/17.)
This key is documented, and is still not removed in Fancy Mod Loader 3.0.19.
* Bump SecureJarHandler
* Bump SJH
* Bump to run on Java 21, since SJH requires it.
* Bump to run on Java 21, since SJH requires it.
* Bump to run on Java 21, since SJH requires it.
* Add add-opens for JMH
The key
services
in (neoforge.)mods.toml was introduced in MinecraftForge 37.0.0, the 1.17.1 update. It uses a new classModJarMetadata
to implement this by usingModuleDescriptor.Builder.uses
.However, the
Builder
was created bynewAutomaticModule
, which doesn't allow callinguses
:(Taken from decompiled OpenJDK 21 (using FernFlower decompiler), but it's same for OpenJDK 16/17.)
This key is documented, and is still not removed in Fancy Mod Loader 3.0.19.
An example that "supports" from MinecraftForge 37.x.x to NeoForge 20.6.20-beta (or later), please gunzip it.
The text was updated successfully, but these errors were encountered: