aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/data
diff options
context:
space:
mode:
authorLorenz <lo.scherf@gmail.com>2022-09-08 13:52:31 +0200
committerLorenz <lo.scherf@gmail.com>2022-09-08 13:52:31 +0200
commit8fbf31c9905f58d850465024c8f90f36bab1a8d2 (patch)
tree87915aa5f6cbd4a97f7350f352d8169c8e6c1f37 /src/main/java/at/hannibal2/skyhanni/data
parent66890532a5d3ac7df1652855a57addfc3555e183 (diff)
downloadskyhanni-8fbf31c9905f58d850465024c8f90f36bab1a8d2.tar.gz
skyhanni-8fbf31c9905f58d850465024c8f90f36bab1a8d2.tar.bz2
skyhanni-8fbf31c9905f58d850465024c8f90f36bab1a8d2.zip
added more minecraft console filters
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/data')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/data/HypixelData.kt8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/HypixelData.kt b/src/main/java/at/hannibal2/skyhanni/data/HypixelData.kt
index 2e8a7a119..0e6efff26 100644
--- a/src/main/java/at/hannibal2/skyhanni/data/HypixelData.kt
+++ b/src/main/java/at/hannibal2/skyhanni/data/HypixelData.kt
@@ -3,7 +3,7 @@ package at.hannibal2.skyhanni.data
import at.hannibal2.skyhanni.events.LocationChangeEvent
import at.hannibal2.skyhanni.events.LorenzChatEvent
import at.hannibal2.skyhanni.events.ProfileJoinEvent
-import at.hannibal2.skyhanni.utils.LorenzUtils
+import at.hannibal2.skyhanni.utils.LorenzLogger
import at.hannibal2.skyhanni.utils.StringUtils.removeColor
import at.hannibal2.skyhanni.utils.TabListUtils
import net.minecraft.client.Minecraft
@@ -20,6 +20,8 @@ class HypixelData {
var mode: String = ""
}
+ var loggerLocationChange = LorenzLogger("debug/location_change")
+
@SubscribeEvent
fun onConnect(event: FMLNetworkEvent.ClientConnectedToServerEvent) {
hypixel = Minecraft.getMinecraft().runCatching {
@@ -28,8 +30,6 @@ class HypixelData {
}.onFailure { it.printStackTrace() }.getOrDefault(false)
}
- val areaRegex = Regex("§r§b§l(?<area>[\\w]+): §r§7(?<loc>[\\w ]+)§r")
-
@SubscribeEvent
fun onWorldChange(event: WorldEvent.Load) {
skyblock = false
@@ -95,7 +95,7 @@ class HypixelData {
if (mode != location) {
LocationChangeEvent(location, mode).postAndCatch()
- LorenzUtils.consoleLog("SkyHanni location change: '$location'")
+ loggerLocationChange.log(location)
mode = location
}
}