We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 630a363 commit 9e68a17Copy full SHA for 9e68a17
src/main/java/one/pkg/fnp_patcher/ModMain.java
@@ -9,6 +9,17 @@ public class ModMain implements ModInitializer {
9
10
@Override
11
public void onInitialize() {
12
+ safetyCheck();
13
+
14
ConfigRegistry.register(PatcherModConfig.class, MOD_ID);
15
}
16
17
+ // This is a deliberate check.
18
+ protected void safetyCheck() {
19
+ try {
20
+ Class.forName("org.bukkit.advancement.Advancement");
21
+ throw new SecurityException("Unsupported mod detected: bukkit");
22
+ } catch (ClassNotFoundException ignored) {
23
+ }
24
25
src/main/resources/fabric.mod.json
@@ -31,5 +31,11 @@
31
},
32
"suggests": {
33
"krypton": "*"
34
+ },
35
+ "breaks": {
36
+ "arclight": "*",
37
+ "banner-launcher": "*",
38
+ "cardboard": "*",
39
+ "mohist": "*"
40
41
0 commit comments