Fix @GameTestGenerator not functioning correctly. Closes #9748

This commit is contained in:
LexManos committed 2023-10-23 11:37:51 -07:00
1 parent 347c480bdc
commit 72e8ae252c
1 file changed
+1 -1
@@ -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);