diff options
Diffstat (limited to 'src/main/kotlin/com/dulkirfabric/features')
-rw-r--r-- | src/main/kotlin/com/dulkirfabric/features/AotvHighlight.kt | 4 | ||||
-rw-r--r-- | src/main/kotlin/com/dulkirfabric/features/RenderTest.kt | 6 |
2 files changed, 6 insertions, 4 deletions
diff --git a/src/main/kotlin/com/dulkirfabric/features/AotvHighlight.kt b/src/main/kotlin/com/dulkirfabric/features/AotvHighlight.kt index b56c82a..283886f 100644 --- a/src/main/kotlin/com/dulkirfabric/features/AotvHighlight.kt +++ b/src/main/kotlin/com/dulkirfabric/features/AotvHighlight.kt @@ -1,6 +1,7 @@ package com.dulkirfabric.features import com.dulkirfabric.DulkirModFabric.mc +import com.dulkirfabric.config.DulkirConfig import com.dulkirfabric.events.ClientTickEvent import com.dulkirfabric.events.LongUpdateEvent import com.dulkirfabric.events.WorldRenderLastEvent @@ -38,6 +39,7 @@ object AotvHighlight { @EventHandler fun onWorldRenderLast(event: WorldRenderLastEvent) { + if (!DulkirConfig.configOptions.showEtherwarpPreview) return // check that holding aotv if (heldItemID != "ASPECT_OF_THE_VOID") return val handle = MinecraftClient.getInstance().window.handle @@ -52,7 +54,7 @@ object AotvHighlight { // if found display box WorldRenderUtils.drawBox(event.context, pos.x.toDouble(), pos.y.toDouble(), pos.z.toDouble(), 1.0, 1.0, 1.0, - Color(255, 1, 1, 255), false) + Color(DulkirConfig.configOptions.etherwarpPreviewColor, true), false) } private fun raycast(entity: Entity, maxDistance: Double, tickDelta: Float): HitResult { diff --git a/src/main/kotlin/com/dulkirfabric/features/RenderTest.kt b/src/main/kotlin/com/dulkirfabric/features/RenderTest.kt index 179ad3d..1f00b53 100644 --- a/src/main/kotlin/com/dulkirfabric/features/RenderTest.kt +++ b/src/main/kotlin/com/dulkirfabric/features/RenderTest.kt @@ -19,12 +19,12 @@ object RenderTest { Vec3d(-183.5, 79.0, -465.5) ) - WorldRenderUtils.drawBox(event.context, 16.0, 119.0, -6.0, 2.0, 2.0, 2.0, Color(0, 200, 200, 150), false) + WorldRenderUtils.drawBox(event.context, 16.0, 119.0, -6.0, 2.0, 2.0, 2.0, Color(0, 200, 200, 100), false) } @EventHandler fun onLoadEnt(event: EntityLoadEvent) { - if (event.entity !is GlowingEntityInterface) return - event.entity.setDulkirEntityGlow(true, Color(0, 0, 255, 255)) + //if (event.entity !is GlowingEntityInterface) return + //event.entity.setDulkirEntityGlow(true, Color(0, 0, 255, 255)) } }
\ No newline at end of file |