From 93b21c0094fa23c87c6538e30ca864f6241c4528 Mon Sep 17 00:00:00 2001 From: coolGi Date: Sat, 4 May 2024 18:44:12 +0930 Subject: [PATCH] Removed process functions where the namespace isn't provided from being deprecated in the GamePatch --- .../java/org/quiltmc/loader/impl/entrypoint/GamePatch.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/quiltmc/loader/impl/entrypoint/GamePatch.java b/src/main/java/org/quiltmc/loader/impl/entrypoint/GamePatch.java index 25dd9983b..459897f5b 100644 --- a/src/main/java/org/quiltmc/loader/impl/entrypoint/GamePatch.java +++ b/src/main/java/org/quiltmc/loader/impl/entrypoint/GamePatch.java @@ -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; @@ -131,17 +132,15 @@ protected boolean isPublicInstance(int access) { public void process(QuiltLauncher launcher, String namespace, Function classSource, Consumer classEmitter) { throw new AbstractMethodError(getClass() + " must override one of the 'process' methods!"); } - @Deprecated public void process(QuiltLauncher launcher, Function classSource, Consumer 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); } }