diff options
author | HacktheTime <l4bg0jb7@duck.com> | 2023-12-07 21:31:56 +0100 |
---|---|---|
committer | HacktheTime <l4bg0jb7@duck.com> | 2023-12-08 14:15:22 +0100 |
commit | 6b0885b7a371d3e15e73fa997ecc2133b63553fd (patch) | |
tree | 8b1a5b808c97149917366ff227a4c8982391c7df | |
parent | 76919cbca34af3f90d63a16c298b8d053068c578 (diff) | |
download | BBsentials-6b0885b7a371d3e15e73fa997ecc2133b63553fd.tar.gz BBsentials-6b0885b7a371d3e15e73fa997ecc2133b63553fd.tar.bz2 BBsentials-6b0885b7a371d3e15e73fa997ecc2133b63553fd.zip |
bug fixes with missing files
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(""); } } |