File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
java/net/minecraftforge/gradle/user/patcherUser/forge
resources/net/minecraftforge/gradle Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,10 @@ protected void applyUserPlugin()
4848 // add coremod loading hack to gradle start
4949 {
5050 CreateStartTask makeStart = ((CreateStartTask )project .getTasks ().getByName (UserConstants .TASK_MAKE_START ));
51- makeStart .addResource ("net/minecraftforge/gradle/GradleForgeHacks.java" );
51+ for (String res : Constants .GRADLE_START_FML_RES )
52+ {
53+ makeStart .addResource (res );
54+ }
5255 makeStart .addExtraLine ("net.minecraftforge.gradle.GradleForgeHacks.searchCoremods(this);" );
5356 }
5457
Original file line number Diff line number Diff line change @@ -46,13 +46,13 @@ public static void searchCoremods(GradleStartCommon common) throws Exception
4646 {
4747 // check for argument
4848 if (common .extras .contains (NO_CORE_SEARCH ))
49- {
50- common .extras .remove (NO_CORE_SEARCH );
51- }
52- else
5349 {
5450 // no core searching
5551 GradleStartCommon .LOGGER .info ("GradleStart coremod searching disabled!" );
52+
53+ // remove it so it cant potentially screw up the bonced start class
54+ common .extras .remove (NO_CORE_SEARCH );
55+
5656 return ;
5757 }
5858
You can’t perform that action at this time.
0 commit comments