File tree 3 files changed +11
-3
lines changed
3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 7
7
"author": "MEEP of Faith (And a bunch of contributors. Load the game with Meepscillanious Concepts enabled to view them!)",
8
8
"java": true,
9
9
"main": "progressed.ProgMats",
10
- "repo": "MEEPofFaith/prog-mats-java"
10
+ "repo": "MEEPofFaith/prog-mats-java",
11
+ "dependencies": ["black-hole-renderer"]
11
12
}
Original file line number Diff line number Diff line change 20
20
import progressed .graphics .renders .*;
21
21
import progressed .ui .*;
22
22
import progressed .ui .dialogs .*;
23
+ import progressed .util .*;
23
24
import progressed .world .blocks .defence .turret .payload .modular .*;
24
25
25
26
import static arc .Core .*;
@@ -152,8 +153,7 @@ public static boolean farting(){
152
153
}
153
154
154
155
static boolean TUEnabled (){
155
- LoadedMod testUtils = mods .getMod ("test-utils" );
156
- return testUtils != null && testUtils .isSupported () && testUtils .enabled ();
156
+ return PMUtls .modEnabled ("test-utils" );
157
157
}
158
158
159
159
static class Separator extends Setting {
Original file line number Diff line number Diff line change 3
3
import arc .math .*;
4
4
import arc .struct .*;
5
5
import arc .util .*;
6
+ import mindustry .*;
6
7
import mindustry .content .*;
7
8
import mindustry .core .*;
8
9
import mindustry .entities .bullet .*;
9
10
import mindustry .gen .*;
11
+ import mindustry .mod .Mods .*;
10
12
import mindustry .type .*;
11
13
import mindustry .world .*;
12
14
import progressed .entities .bullet .energy .*;
@@ -117,6 +119,11 @@ public static String round(float f){
117
119
}
118
120
}
119
121
122
+ public static boolean modEnabled (String name ){
123
+ LoadedMod mod = Vars .mods .getMod (name );
124
+ return mod != null && mod .isSupported () && mod .enabled ();
125
+ }
126
+
120
127
public static void uhOhSpeghettiOh (String ohno ){
121
128
throw new RuntimeException (ohno );
122
129
}
You can’t perform that action at this time.
0 commit comments