mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-21 05:42:23 +00:00
Added GUI fields for setting flying properties of NPCs. Updated en_lang file to add GUI texts.
This commit is contained in:
1 parent
94c7df410b
commit
90eec7a57b
3 files changed
+26
-1
No files matched your search
@@ -49,8 +49,9 @@ public class FlyingMoveHelper extends EntityMoveHelper{
|
||||
double verticalSpeed = Math.abs(this.entity.posY - this.posY);
|
||||
if(verticalSpeed > speed * speedMult)
|
||||
verticalSpeed = speed * speedMult;
|
||||
verticalSpeed += this.entity.ai.flySpeed/2.0D;
|
||||
|
||||
this.entity.motionY -= Math.signum(this.entity.posY - this.posY) * verticalSpeed * this.entity.ai.flySpeed;
|
||||
this.entity.motionY -= Math.signum(this.entity.posY - this.posY) * verticalSpeed;
|
||||
}
|
||||
|
||||
double d5 = MathHelper.sqrt_double(d4);
|
||||
|
||||
Reference in new issue
Block a user