From a3bfdd3aad29144c7e6488629e0272c08170f146 Mon Sep 17 00:00:00 2001 From: Technici4n <13494793+Technici4n@users.noreply.github.com> Date: Sun, 22 Oct 2023 00:11:19 +0200 Subject: [PATCH] Remove now unneeded gametest launch handlers --- .../targets/ForgeGametestDevLaunchHandler.java | 18 ------------------ .../ForgeGametestUserdevLaunchHandler.java | 18 ------------------ ....mods.modlauncher.api.ILaunchHandlerService | 2 -- 3 files changed, 38 deletions(-) delete mode 100644 loader/src/main/java/net/neoforged/fml/loading/targets/ForgeGametestDevLaunchHandler.java delete mode 100644 loader/src/main/java/net/neoforged/fml/loading/targets/ForgeGametestUserdevLaunchHandler.java diff --git a/loader/src/main/java/net/neoforged/fml/loading/targets/ForgeGametestDevLaunchHandler.java b/loader/src/main/java/net/neoforged/fml/loading/targets/ForgeGametestDevLaunchHandler.java deleted file mode 100644 index f66e0ac8d..000000000 --- a/loader/src/main/java/net/neoforged/fml/loading/targets/ForgeGametestDevLaunchHandler.java +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright (c) Forge Development LLC and contributors - * SPDX-License-Identifier: LGPL-2.1-only - */ - -package net.neoforged.fml.loading.targets; - -import net.neoforged.api.distmarker.Dist; - -public class ForgeGametestDevLaunchHandler extends CommonDevLaunchHandler { - @Override public String name() { return "forgegametestserverdev"; } - @Override public Dist getDist() { return Dist.DEDICATED_SERVER; } - - @Override - public void runService(String[] arguments, ModuleLayer layer) throws Throwable { - Class.forName(layer.findModule("neoforge").orElseThrow(), "net.neoforged.gametest.GameTestMain").getMethod("main", String[].class).invoke(null, (Object)arguments); - } -} \ No newline at end of file diff --git a/loader/src/main/java/net/neoforged/fml/loading/targets/ForgeGametestUserdevLaunchHandler.java b/loader/src/main/java/net/neoforged/fml/loading/targets/ForgeGametestUserdevLaunchHandler.java deleted file mode 100644 index 3c2fd802a..000000000 --- a/loader/src/main/java/net/neoforged/fml/loading/targets/ForgeGametestUserdevLaunchHandler.java +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright (c) Forge Development LLC and contributors - * SPDX-License-Identifier: LGPL-2.1-only - */ - -package net.neoforged.fml.loading.targets; - -import net.neoforged.api.distmarker.Dist; - -public class ForgeGametestUserdevLaunchHandler extends ForgeUserdevLaunchHandler { - @Override public String name() { return "forgegametestserveruserdev"; } - @Override public Dist getDist() { return Dist.DEDICATED_SERVER; } - - @Override - public void runService(String[] arguments, ModuleLayer layer) throws Throwable { - Class.forName(layer.findModule("neoforge").orElseThrow(), "net.neoforged.gametest.GameTestMain").getMethod("main", String[].class).invoke(null, (Object)arguments); - } -} \ No newline at end of file diff --git a/loader/src/main/resources/META-INF/services/cpw.mods.modlauncher.api.ILaunchHandlerService b/loader/src/main/resources/META-INF/services/cpw.mods.modlauncher.api.ILaunchHandlerService index 3f0d889b8..a263947e3 100644 --- a/loader/src/main/resources/META-INF/services/cpw.mods.modlauncher.api.ILaunchHandlerService +++ b/loader/src/main/resources/META-INF/services/cpw.mods.modlauncher.api.ILaunchHandlerService @@ -6,5 +6,3 @@ net.neoforged.fml.loading.targets.ForgeServerDevLaunchHandler net.neoforged.fml.loading.targets.ForgeServerUserdevLaunchHandler net.neoforged.fml.loading.targets.ForgeDataDevLaunchHandler net.neoforged.fml.loading.targets.ForgeDataUserdevLaunchHandler -net.neoforged.fml.loading.targets.ForgeGametestDevLaunchHandler -net.neoforged.fml.loading.targets.ForgeGametestUserdevLaunchHandler