aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fabric/src/main/java/de/hype/bbsentials/fabric/BBUtils.java3
-rw-r--r--forge/src/main/java/de/hype/bbsentials/forge/BBUtils.java5
-rw-r--r--forge/src/main/java/de/hype/bbsentials/forge/CommandImplementations/CommandOpenConfig.java4
-rw-r--r--forge/src/main/java/de/hype/bbsentials/forge/DebugThread.java4
4 files changed, 7 insertions, 9 deletions
diff --git a/fabric/src/main/java/de/hype/bbsentials/fabric/BBUtils.java b/fabric/src/main/java/de/hype/bbsentials/fabric/BBUtils.java
index 5dca4ac..a47419d 100644
--- a/fabric/src/main/java/de/hype/bbsentials/fabric/BBUtils.java
+++ b/fabric/src/main/java/de/hype/bbsentials/fabric/BBUtils.java
@@ -2,6 +2,7 @@ package de.hype.bbsentials.fabric;
import com.google.common.collect.Lists;
import de.hype.bbsentials.common.chat.Chat;
+import de.hype.bbsentials.common.constants.enviromentShared.EnumUtils;
import de.hype.bbsentials.common.constants.enviromentShared.Islands;
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.network.PlayerListEntry;
@@ -17,7 +18,7 @@ public class BBUtils implements de.hype.bbsentials.common.mclibraries.BBUtils {
Chat.sendPrivateMessageToSelfError("Could not get Area data. Are you in Skyblock?");
}
else {
- return Islands.getByDisplayName(string.replace("Area: ", "").trim());
+ return EnumUtils.getEnumByName(Islands.class, string.replace("Area: ", "").trim());
}
} catch (Exception e) {
}
diff --git a/forge/src/main/java/de/hype/bbsentials/forge/BBUtils.java b/forge/src/main/java/de/hype/bbsentials/forge/BBUtils.java
index e50ef3b..5916a4a 100644
--- a/forge/src/main/java/de/hype/bbsentials/forge/BBUtils.java
+++ b/forge/src/main/java/de/hype/bbsentials/forge/BBUtils.java
@@ -1,12 +1,11 @@
package de.hype.bbsentials.forge;
import com.google.common.collect.Lists;
-import com.mojang.realmsclient.dto.PlayerInfo;
import de.hype.bbsentials.common.chat.Chat;
+import de.hype.bbsentials.common.constants.enviromentShared.EnumUtils;
import de.hype.bbsentials.common.constants.enviromentShared.Islands;
import net.minecraft.client.Minecraft;
import net.minecraft.client.network.NetworkPlayerInfo;
-import net.minecraft.server.gui.PlayerListComponent;
import java.util.Iterator;
import java.util.List;
@@ -19,7 +18,7 @@ public class BBUtils implements de.hype.bbsentials.common.mclibraries.BBUtils {
Chat.sendPrivateMessageToSelfError("Could not get Area data. Are you in Skyblock?");
}
else {
- return Islands.getByDisplayName(string.replace("Area: ", "").trim());
+ return EnumUtils.getEnumByName(Islands.class, string.replace("Area: ", "").trim());
}
} catch (Exception e) {
}
diff --git a/forge/src/main/java/de/hype/bbsentials/forge/CommandImplementations/CommandOpenConfig.java b/forge/src/main/java/de/hype/bbsentials/forge/CommandImplementations/CommandOpenConfig.java
index 69936da..0bf7716 100644
--- a/forge/src/main/java/de/hype/bbsentials/forge/CommandImplementations/CommandOpenConfig.java
+++ b/forge/src/main/java/de/hype/bbsentials/forge/CommandImplementations/CommandOpenConfig.java
@@ -1,7 +1,5 @@
package de.hype.bbsentials.forge.CommandImplementations;
-import de.hype.bbsentials.forge.ForgeMod;
-import de.hype.bbsentials.forge.client.MoulConfigManager;
import net.minecraft.command.CommandBase;
import net.minecraft.command.ICommandSender;
@@ -20,7 +18,7 @@ public class CommandOpenConfig extends CommandBase {
@Override
public void processCommand(ICommandSender sender, String[] args) {
- new MoulConfigManager().openConfigGui();
+// new MoulConfigManager().openConfigGui();
}
@Override
diff --git a/forge/src/main/java/de/hype/bbsentials/forge/DebugThread.java b/forge/src/main/java/de/hype/bbsentials/forge/DebugThread.java
index 60d1469..a426381 100644
--- a/forge/src/main/java/de/hype/bbsentials/forge/DebugThread.java
+++ b/forge/src/main/java/de/hype/bbsentials/forge/DebugThread.java
@@ -1,6 +1,6 @@
package de.hype.bbsentials.forge;
-import de.hype.bbsentials.forge.client.MoulConfigManager;
+//import de.hype.bbsentials.forge.client.MoulConfigManager;
import java.util.Collections;
import java.util.List;
@@ -13,7 +13,7 @@ public class DebugThread implements de.hype.bbsentials.common.client.DebugThread
@Override
public List<String> test() {
- new MoulConfigManager().openConfigGui();
+// new MoulConfigManager().openConfigGui();
return Collections.singletonList("");
}
}