diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/client/MatteryGUI.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/client/MatteryGUI.kt index 8fc71240d..c14861b48 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/client/MatteryGUI.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/client/MatteryGUI.kt @@ -117,6 +117,8 @@ object MatteryGUI { graphics: GuiGraphics, delta: DeltaTracker ) { + if (minecraft.options.hideGui) return + val ply: LocalPlayer = minecraft.player ?: return if (ply.vehicle is LivingEntity || ply.isCreative) @@ -186,6 +188,7 @@ object MatteryGUI { delta: DeltaTracker ) { if (!ClientConfig.HUD.ANDROID_HEALTH_BAR) return + if (minecraft.options.hideGui) return val gui = minecraft.gui val ply: LocalPlayer = minecraft.player ?: return @@ -279,6 +282,8 @@ object MatteryGUI { graphics: GuiGraphics, delta: DeltaTracker ) { + if (minecraft.options.hideGui) return + val player = minecraft.player ?: return if (!player.matteryPlayer.isAndroid) return @@ -378,6 +383,8 @@ object MatteryGUI { graphics: GuiGraphics, delta: DeltaTracker ) { + if (minecraft.options.hideGui) return + val player = minecraft.player ?: return if (!player.matteryPlayer.isAndroid) {