mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-13 05:27:37 +00:00
Fix DBC Flying Issue with Abilities
This commit is contained in:
1 parent
6fdf9daf24
commit
1e45d96253
6 files changed
+42
-25
No files matched your search
@@ -106,9 +106,14 @@ public class ScriptPlayerEventHandler {
|
||||
if (playerData.abilityData.isMovementLocked()) {
|
||||
Ability current = playerData.abilityData.getCurrentAbility();
|
||||
if (current == null || !current.hasAbilityMovement()) {
|
||||
boolean sFlying = playerData.abilityData.wasFlyingAtLock()
|
||||
|| AbilityController.Instance.isPlayerFlying(player);
|
||||
|
||||
player.motionX = 0;
|
||||
if (!AbilityController.Instance.isPlayerFlying(player)) {
|
||||
if (!sFlying) {
|
||||
player.motionY = Math.min(player.motionY, 0);
|
||||
} else {
|
||||
player.motionY = 0;
|
||||
}
|
||||
player.motionZ = 0;
|
||||
player.velocityChanged = true;
|
||||
|
||||
Reference in new issue
Block a user