summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
author dev@ftbsc <dev@fantabos.co>2023-01-26 22:39:11 +0100
committer dev@ftbsc <dev@fantabos.co>2023-01-26 22:39:11 +0100
commitc207cdbfb4b712fb1a032a3c182dacaa3b7008d3 (patch)
tree87284e50867053d930bb9ec02ad982151d0973d5 /src
parentced8ae36ee9fd946910345e527a7f2983e045a22 (diff)
fix: name clash! how fun
Diffstat (limited to 'src')
-rw-r--r--src/main/java/co/fantabos/bscv/BoSCoVicino.java8
-rw-r--r--src/main/java/co/fantabos/bscv/Mod.java2
2 files changed, 5 insertions, 5 deletions
diff --git a/src/main/java/co/fantabos/bscv/BoSCoVicino.java b/src/main/java/co/fantabos/bscv/BoSCoVicino.java
index 58b8438..25f7636 100644
--- a/src/main/java/co/fantabos/bscv/BoSCoVicino.java
+++ b/src/main/java/co/fantabos/bscv/BoSCoVicino.java
@@ -33,7 +33,7 @@ public class BoSCoVicino {
public static Minecraft minecraft;
- public static List<Mod> mods;
+ public static List<co.fantabos.bscv.Mod> mods;
public BoSCoVicino() {
// Register the setup method for modloading
@@ -52,9 +52,9 @@ public class BoSCoVicino {
ForgeConfigSpec.Builder builder = new ForgeConfigSpec.Builder();
// load and register mods
- BoSCoVicino.mods = new ArrayList<Mod>();
+ BoSCoVicino.mods = new ArrayList<co.fantabos.bscv.Mod>();
- BoSCoVicino.mods.add((Mod) new Fullbright(builder));
+ BoSCoVicino.mods.add(new Fullbright(builder));
ForgeConfigSpec spec = builder.build();
@@ -90,7 +90,7 @@ public class BoSCoVicino {
@SubscribeEvent
public void onRegisterCommand(RegisterCommandsEvent event) {
- for (Mod mod : BoSCoVicino.mods) {
+ for (co.fantabos.bscv.Mod mod : BoSCoVicino.mods) {
mod.registerCommands(event.getDispatcher());
}
}
diff --git a/src/main/java/co/fantabos/bscv/Mod.java b/src/main/java/co/fantabos/bscv/Mod.java
index 6a351b5..50de9c1 100644
--- a/src/main/java/co/fantabos/bscv/Mod.java
+++ b/src/main/java/co/fantabos/bscv/Mod.java
@@ -30,7 +30,7 @@ public abstract class Mod {
.define("enabled", false);
}
- protected void registerCommand(CommandDispatcher<CommandSource> dispatcher) {
+ public void registerCommands(CommandDispatcher<CommandSource> dispatcher) {
dispatcher.register(
Commands.literal(this.name.toLowerCase())
.then(