diff options
author | jani270 <69345714+jani270@users.noreply.github.com> | 2025-07-08 00:23:37 +0200 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2025-07-08 10:01:55 +0200 |
commit | d243701a5b9f953ff1401f0d30d0f424e2cd3dc6 (patch) | |
tree | 8c6ab522e2725d5d37b122874c0c03ec7b50bbe6 | |
parent | e4f6a0f8316ca8374facd44ebbf6c28544a99831 (diff) | |
download | Firmament-d243701a5b9f953ff1401f0d30d0f424e2cd3dc6.tar.gz Firmament-d243701a5b9f953ff1401f0d30d0f424e2cd3dc6.tar.bz2 Firmament-d243701a5b9f953ff1401f0d30d0f424e2cd3dc6.zip |
-rw-r--r-- | src/main/kotlin/features/items/EtherwarpOverlay.kt | 3 | ||||
-rw-r--r-- | translations/en_us.json | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/main/kotlin/features/items/EtherwarpOverlay.kt b/src/main/kotlin/features/items/EtherwarpOverlay.kt index b1f695a..f6ab1a2 100644 --- a/src/main/kotlin/features/items/EtherwarpOverlay.kt +++ b/src/main/kotlin/features/items/EtherwarpOverlay.kt @@ -19,6 +19,7 @@ object EtherwarpOverlay : FirmamentFeature { object TConfig : ManagedConfig(identifier, Category.ITEMS) { var etherwarpOverlay by toggle("etherwarp-overlay") { false } + var onlyShowWhileSneaking by toggle("only-show-while-sneaking") { true } var cube by toggle("cube") { true } val cubeColour by colour("cube-colour") { ChromaColour.fromStaticRGB(172, 0, 255, 60) } var wireframe by toggle("wireframe") { false } @@ -32,7 +33,7 @@ object EtherwarpOverlay : FirmamentFeature { fun renderEtherwarpOverlay(event: WorldRenderLastEvent) { if (!TConfig.etherwarpOverlay) return val player = MC.player ?: return - if (!player.isSneaking) return + if (TConfig.onlyShowWhileSneaking && !player.isSneaking) return val world = player.world val camera = MC.camera ?: return val heldItem = MC.stackInHand diff --git a/translations/en_us.json b/translations/en_us.json index a0b90eb..95b43f1 100644 --- a/translations/en_us.json +++ b/translations/en_us.json @@ -135,6 +135,8 @@ "firmament.config.etherwarp-overlay.cube.description": "Displays a full cube on the block", "firmament.config.etherwarp-overlay.etherwarp-overlay": "Etherwarp Overlay", "firmament.config.etherwarp-overlay.etherwarp-overlay.description": "Display an overlay that tells you what block you will warp to.", + "firmament.config.etherwarp-overlay.only-show-while-sneaking": "Only show while sneaking", + "firmament.config.etherwarp-overlay.only-show-while-sneaking.description": "Displays the Etherwarp overlay only while sneaking.", "firmament.config.etherwarp-overlay.wireframe": "Outline", "firmament.config.etherwarp-overlay.wireframe.description": "Displays a full outline on the block", "firmament.config.fairy-souls": "Fairy Souls", |