From 72e8ae252c28b1c39704cb9cd507b14b6add2eb1 Mon Sep 17 00:00:00 2001 From: LexManos Date: Mon, 23 Oct 2023 11:37:51 -0700 Subject: [PATCH] Fix @GameTestGenerator not functioning correctly. Closes #9748 --- .../minecraft/gametest/framework/GameTestRegistry.java.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/minecraft/net/minecraft/gametest/framework/GameTestRegistry.java.patch b/patches/minecraft/net/minecraft/gametest/framework/GameTestRegistry.java.patch index 4e7e5614a6..be8998da35 100644 --- a/patches/minecraft/net/minecraft/gametest/framework/GameTestRegistry.java.patch +++ b/patches/minecraft/net/minecraft/gametest/framework/GameTestRegistry.java.patch @@ -32,7 +32,7 @@ - TEST_FUNCTIONS.addAll(useTestGeneratorMethod(p_177504_)); - TEST_CLASS_NAMES.add(s); + for (var func : useTestGeneratorMethod(p_177504_)) -+ net.minecraftforge.gametest.ForgeGameTestHooks.addTest(TEST_FUNCTIONS, TEST_CLASS_NAMES, allowed, turnMethodIntoTestFunction(p_177504_)); ++ net.minecraftforge.gametest.ForgeGameTestHooks.addTest(TEST_FUNCTIONS, TEST_CLASS_NAMES, allowed, func); } registerBatchFunction(p_177504_, BeforeBatch.class, BeforeBatch::batch, BEFORE_BATCH_FUNCTIONS);