diff options
Diffstat (limited to 'src/main/kotlin/features/items/EtherwarpOverlay.kt')
-rw-r--r-- | src/main/kotlin/features/items/EtherwarpOverlay.kt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/kotlin/features/items/EtherwarpOverlay.kt b/src/main/kotlin/features/items/EtherwarpOverlay.kt index 83e533c..2de2159 100644 --- a/src/main/kotlin/features/items/EtherwarpOverlay.kt +++ b/src/main/kotlin/features/items/EtherwarpOverlay.kt @@ -1,5 +1,6 @@ package moe.nea.firmament.features.items +import me.shedaniel.math.Color import moe.nea.firmament.annotations.Subscribe import moe.nea.firmament.features.FirmamentFeature import moe.nea.firmament.gui.config.ManagedConfig @@ -29,6 +30,7 @@ object EtherwarpOverlay : FirmamentFeature { fun renderEtherwarpOverlay(event: WorldRenderLastEvent) { if (!TConfig.etherwarpOverlay) return val player = MC.player ?: return + if (!player.isSneaking) return val world = player.world val camera = MC.camera ?: return val heldItem = MC.stackInHand @@ -42,7 +44,7 @@ object EtherwarpOverlay : FirmamentFeature { if (!world.getBlockState(blockPos.up()).isAir) return if (!world.getBlockState(blockPos.up(2)).isAir) return RenderInWorldContext.renderInWorld(event) { - if (TConfig.cube) block(blockPos, 0xFFFFFF00.toInt()) + if (TConfig.cube) block(blockPos, Color.ofRGBA(172, 0, 255, 60).color) if (TConfig.wireframe) wireframeCube(blockPos, 10f) } } |