Ignore creative players

This commit is contained in:
DBotThePony 2023-02-25 18:24:53 +07:00
parent 5b4c68b201
commit f4db9b1e22
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -809,7 +809,7 @@ class MatteryPlayerCapability(val ply: Player) : ICapabilityProvider, INBTSerial
lastOutsideLiquid = ply.position lastOutsideLiquid = ply.position
} }
if (ply.isUnderWater) { if (ply.isUnderWater && !ply.isCreative) {
if (!wasInLiquid) { if (!wasInLiquid) {
wasInLiquid = true wasInLiquid = true
lastOutsideLiquid = ply.position lastOutsideLiquid = ply.position