We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a337320 + 4c11369 commit 0c48ceaCopy full SHA for 0c48cea
SecretAPI/Features/Effects/IGravityEffect.cs
@@ -21,19 +21,22 @@ internal static void Initialize()
21
{
22
PlayerEvents.UpdatedEffect += ev =>
23
24
- Vector3 multi = Vector3.one;
+ Vector3 multi = new(0f, -19.6f, 0f);
25
+ bool isAffected = false;
26
foreach (StatusEffectBase effectBase in ev.Player.ActiveEffects)
27
28
if (effectBase is not IGravityEffect gravityEffect)
29
continue;
30
31
+ isAffected = true;
32
multi.x *= gravityEffect.GravityMultiplier.x;
33
multi.y *= gravityEffect.GravityMultiplier.y;
34
multi.z *= gravityEffect.GravityMultiplier.z;
35
}
36
- ev.Player.Gravity = multi;
37
+ if (isAffected)
38
+ ev.Player.Gravity = multi;
39
};
40
41
-}
42
+}
0 commit comments