aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorMy-Name-Is-Jeff <37018278+My-Name-Is-Jeff@users.noreply.github.com>2021-09-18 20:33:21 -0400
committerMy-Name-Is-Jeff <37018278+My-Name-Is-Jeff@users.noreply.github.com>2021-09-18 20:33:21 -0400
commit51905e9c6a479fb223966b27f4666f7a33565a0c (patch)
treea476d934faf575d934cb93401d87d635c8c86438 /src/main
parent393b0ba720de298f8b048804c0253b16941e8a60 (diff)
downloadSkytilsMod-51905e9c6a479fb223966b27f4666f7a33565a0c.tar.gz
SkytilsMod-51905e9c6a479fb223966b27f4666f7a33565a0c.tar.bz2
SkytilsMod-51905e9c6a479fb223966b27f4666f7a33565a0c.zip
split point into a separate setting
Diffstat (limited to 'src/main')
-rw-r--r--src/main/kotlin/skytils/skytilsmod/core/Config.kt7
-rw-r--r--src/main/kotlin/skytils/skytilsmod/features/impl/misc/SlayerFeatures.kt2
2 files changed, 8 insertions, 1 deletions
diff --git a/src/main/kotlin/skytils/skytilsmod/core/Config.kt b/src/main/kotlin/skytils/skytilsmod/core/Config.kt
index 7e6a8513..a7a6b7b9 100644
--- a/src/main/kotlin/skytils/skytilsmod/core/Config.kt
+++ b/src/main/kotlin/skytils/skytilsmod/core/Config.kt
@@ -1731,6 +1731,13 @@ object Config : Vigilant(File("./config/skytils/config.toml"), "Skytils", sortin
var highlightYangGlyph = false
@Property(
+ PropertyType.SWITCH, name = "Point to Yang Glyph",
+ description = "Draws an arrow in the direction of the Yang Glyph Block.",
+ category = "Slayer", subcategory = "Voidgloom Seraph"
+ )
+ var pointYangGlyph = false
+
+ @Property(
PropertyType.COLOR, name = "Yang Glyph Highlight Color",
description = "Changes the color for the Yang Glyph block",
category = "Slayer", subcategory = "Voidgloom Seraph"
diff --git a/src/main/kotlin/skytils/skytilsmod/features/impl/misc/SlayerFeatures.kt b/src/main/kotlin/skytils/skytilsmod/features/impl/misc/SlayerFeatures.kt
index 58e498f1..58e7047a 100644
--- a/src/main/kotlin/skytils/skytilsmod/features/impl/misc/SlayerFeatures.kt
+++ b/src/main/kotlin/skytils/skytilsmod/features/impl/misc/SlayerFeatures.kt
@@ -494,7 +494,7 @@ class SlayerFeatures {
@SubscribeEvent
fun onRenderHud(event: RenderHUDEvent) {
if (!Utils.inSkyblock) return
- if (Skytils.config.highlightYangGlyph) {
+ if (Skytils.config.pointYangGlyph) {
val pos = yangGlyph.toVec3()?.addVector(0.5, 0.5, 0.5)
?: yangGlyphEntity?.run { if (this.isEntityAlive) this else null }?.positionVector ?: return
val x = UResolution.scaledWidth / 2.0