From 691fe66797626ecc28055f36f3552c589fb03322 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Sun, 9 Feb 2025 13:44:31 +0700 Subject: [PATCH] =?UTF-8?q?Yurie=20=E2=80=94=20=D0=A1=D0=B5=D0=B3=D0=BE?= =?UTF-8?q?=D0=B4=D0=BD=D1=8F,=20=D0=B2=2013:42=20=D0=B4=D0=B0=20=D1=8F=20?= =?UTF-8?q?=D0=B7=D0=BD=D0=B0=D1=8E=20i=20don't=20care?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../kotlin/ru/dbotthepony/mc/otm/client/MatteryGUI.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 77dd1fdc1..9c222a932 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/client/MatteryGUI.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/client/MatteryGUI.kt @@ -117,11 +117,11 @@ object MatteryGUI { graphics: GuiGraphics, delta: DeltaTracker ) { - if (minecraft.options.hideGui) return + if (minecraft.options.hideGui || !minecraft.gameMode!!.canHurtPlayer()) return val ply: LocalPlayer = minecraft.player ?: return - if (ply.vehicle is LivingEntity || ply.isCreative) + if (ply.vehicle is LivingEntity) return val gui = minecraft.gui @@ -188,7 +188,7 @@ object MatteryGUI { delta: DeltaTracker ) { if (!ClientConfig.HUD.ANDROID_HEALTH_BAR) return - if (minecraft.options.hideGui) return + if (minecraft.options.hideGui || !minecraft.gameMode!!.canHurtPlayer()) return val gui = minecraft.gui val ply: LocalPlayer = minecraft.player ?: return @@ -383,7 +383,7 @@ object MatteryGUI { graphics: GuiGraphics, delta: DeltaTracker ) { - if (minecraft.options.hideGui) return + if (minecraft.options.hideGui || !minecraft.gameMode!!.canHurtPlayer()) return val player = minecraft.player ?: return