diff options
author | Appability <appable@icloud.com> | 2022-10-23 13:17:54 -0700 |
---|---|---|
committer | Appability <appable@icloud.com> | 2022-10-23 13:17:54 -0700 |
commit | 10d1822a2a8a93fd34f4303aa7c09b9268ba0e60 (patch) | |
tree | 9e0906cd9e223ed5460daa4a4cb4c62e299040c4 /src/main/kotlin/com/ambientaddons/features/display/CatOverlay.kt | |
parent | 0576a7f5304565bb58a499b8ccdcda31ed587dc4 (diff) | |
download | AmbientAddons-10d1822a2a8a93fd34f4303aa7c09b9268ba0e60.tar.gz AmbientAddons-10d1822a2a8a93fd34f4303aa7c09b9268ba0e60.tar.bz2 AmbientAddons-10d1822a2a8a93fd34f4303aa7c09b9268ba0e60.zip |
+spirit bow overlay
Diffstat (limited to 'src/main/kotlin/com/ambientaddons/features/display/CatOverlay.kt')
-rw-r--r-- | src/main/kotlin/com/ambientaddons/features/display/CatOverlay.kt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/kotlin/com/ambientaddons/features/display/CatOverlay.kt b/src/main/kotlin/com/ambientaddons/features/display/CatOverlay.kt index ac35729..8f010ae 100644 --- a/src/main/kotlin/com/ambientaddons/features/display/CatOverlay.kt +++ b/src/main/kotlin/com/ambientaddons/features/display/CatOverlay.kt @@ -3,6 +3,7 @@ package com.ambientaddons.features.display import AmbientAddons.Companion.config import AmbientAddons.Companion.mc import com.ambientaddons.gui.GuiElement +import com.ambientaddons.gui.MoveGui import com.ambientaddons.utils.render.OverlayUtils import net.minecraft.client.renderer.GlStateManager import net.minecraft.util.ResourceLocation @@ -16,7 +17,9 @@ object CatOverlay { @SubscribeEvent fun onRenderOverlay(event: RenderGameOverlayEvent) { - if (!config.cat || event.type != RenderGameOverlayEvent.ElementType.TEXT) return + if ((!config.cat && mc.currentScreen !is MoveGui) || + event.type != RenderGameOverlayEvent.ElementType.TEXT + ) return GlStateManager.pushMatrix() GlStateManager.enableAlpha() GlStateManager.color(255f, 255f, 255f, 255f) |