no move buff while flying

This commit is contained in:
FatBoy committed 2024-08-30 19:27:19 -05:00
1 parent 67e55ab0a0
commit 5be9033c40
3 files changed
+20 -8

No files matched your search

+2 -5
View File
@@ -4828,11 +4828,8 @@ public class PlayerCharacter extends AbstractCharacter {
}
if(this.isFlying()){
if(this.getBonuses() != null){
float speedMod = this.getBonuses().getFloatPercentPositive(ModType.Speed,SourceType.None);
if(speedMod > 0) {
GroundPlayer(this);
}
if (!AbstractCharacter.CanFly(this)) {
GroundPlayer(this);
}
}