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 /fabric/src | |
parent | 76919cbca34af3f90d63a16c298b8d053068c578 (diff) | |
download | BBsentials-6b0885b7a371d3e15e73fa997ecc2133b63553fd.tar.gz BBsentials-6b0885b7a371d3e15e73fa997ecc2133b63553fd.tar.bz2 BBsentials-6b0885b7a371d3e15e73fa997ecc2133b63553fd.zip |
bug fixes with missing files
Diffstat (limited to 'fabric/src')
-rw-r--r-- | fabric/src/main/java/de/hype/bbsentials/fabric/BBUtils.java | 3 |
1 files changed, 2 insertions, 1 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) { } |