aboutsummaryrefslogtreecommitdiff
path: root/forge
diff options
context:
space:
mode:
authorHacktheTime <l4bg0jb7@duck.com>2023-12-07 21:31:56 +0100
committerHacktheTime <l4bg0jb7@duck.com>2023-12-08 14:15:22 +0100
commit6b0885b7a371d3e15e73fa997ecc2133b63553fd (patch)
tree8b1a5b808c97149917366ff227a4c8982391c7df /forge
parent76919cbca34af3f90d63a16c298b8d053068c578 (diff)
downloadBBsentials-6b0885b7a371d3e15e73fa997ecc2133b63553fd.tar.gz
BBsentials-6b0885b7a371d3e15e73fa997ecc2133b63553fd.tar.bz2
BBsentials-6b0885b7a371d3e15e73fa997ecc2133b63553fd.zip
bug fixes with missing files
Diffstat (limited to 'forge')
-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
3 files changed, 5 insertions, 8 deletions
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("");
}
}