From f4db9b1e22f8ab53322d74e44c25780b607332b1 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Sat, 25 Feb 2023 18:24:53 +0700 Subject: [PATCH] Ignore creative players --- .../ru/dbotthepony/mc/otm/capability/MatteryPlayerCapability.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/capability/MatteryPlayerCapability.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/capability/MatteryPlayerCapability.kt index 506e347a9..10fb5fb41 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/capability/MatteryPlayerCapability.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/capability/MatteryPlayerCapability.kt @@ -809,7 +809,7 @@ class MatteryPlayerCapability(val ply: Player) : ICapabilityProvider, INBTSerial lastOutsideLiquid = ply.position } - if (ply.isUnderWater) { + if (ply.isUnderWater && !ply.isCreative) { if (!wasInLiquid) { wasInLiquid = true lastOutsideLiquid = ply.position