Skip to content

Commit

Permalink
Removed process functions where the namespace isn't provided from bei…
Browse files Browse the repository at this point in the history
…ng deprecated in the GamePatch
  • Loading branch information
coolGi69 committed May 4, 2024
1 parent fe15b07 commit 93b21c0
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
package org.quiltmc.loader.impl.entrypoint;

import org.objectweb.asm.ClassReader;
import org.quiltmc.loader.impl.QuiltLoaderImpl;
import org.quiltmc.loader.impl.launch.common.QuiltLauncher;
import org.quiltmc.loader.impl.util.QuiltLoaderInternal;
import org.quiltmc.loader.impl.util.QuiltLoaderInternalType;
Expand Down Expand Up @@ -131,17 +132,15 @@ protected boolean isPublicInstance(int access) {
public void process(QuiltLauncher launcher, String namespace, Function<String, ClassReader> classSource, Consumer<ClassNode> classEmitter) {
throw new AbstractMethodError(getClass() + " must override one of the 'process' methods!");
}
@Deprecated
public void process(QuiltLauncher launcher, Function<String, ClassReader> classSource, Consumer<ClassNode> classEmitter) {
process(launcher, "intermediary", classSource, classEmitter);
process(launcher, QuiltLoaderImpl.INSTANCE.tryGetGameProvider().getNamespace(), classSource, classEmitter);
}

public void process(QuiltLauncher launcher, String namespace, GamePatchContext context) {
process(launcher, namespace, context::getClassSourceReader, context::addPatchedClass);
}
@Deprecated
public void process(QuiltLauncher launcher, GamePatchContext context) {
process(launcher, "intermediary", context);
process(launcher, QuiltLoaderImpl.INSTANCE.tryGetGameProvider().getNamespace(), context);
}
}

0 comments on commit 93b21c0

Please sign in to comment.