don't trigger AndroidTravelUnderwater if you have air bags
This commit is contained in:
parent
dfa80af853
commit
db2ab57bfc
@ -816,8 +816,9 @@ class MatteryPlayerCapability(val ply: Player) : ICapabilityProvider, INBTSerial
|
|||||||
} else {
|
} else {
|
||||||
if (wasInLiquid) {
|
if (wasInLiquid) {
|
||||||
wasInLiquid = false
|
wasInLiquid = false
|
||||||
val distance = (lastOutsideLiquid - ply.position).length()
|
|
||||||
AndroidTravelUnderwater.trigger(ply, distance)
|
if (!hasFeature(AndroidFeatures.AIR_BAGS))
|
||||||
|
AndroidTravelUnderwater.trigger(ply, (lastOutsideLiquid - ply.position).length())
|
||||||
}
|
}
|
||||||
|
|
||||||
lastOutsideLiquid = ply.position
|
lastOutsideLiquid = ply.position
|
||||||
|
Loading…
Reference in New Issue
Block a user