mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-26 03:23:04 +00:00
Rename to NPC AI to NPC AIs
This commit is contained in:
1 parent
a35db3f9e5
commit
7d37670494
46 files changed
+425
-419
No files matched your search
@@ -28,7 +28,7 @@ public class FlyingMoveHelper extends EntityMoveHelper{
|
||||
this.update = false;
|
||||
|
||||
double speed = this.speed * this.entity.getEntityAttribute(SharedMonsterAttributes.movementSpeed).getAttributeValue();
|
||||
double verticalSpeed = this.speed * this.entity.ai.flySpeed/8.0D;
|
||||
double verticalSpeed = this.speed * this.entity.ais.flySpeed/8.0D;
|
||||
this.entity.setAIMoveSpeed((float)speed);
|
||||
|
||||
double d0 = this.posX - this.entity.posX;
|
||||
@@ -45,7 +45,7 @@ public class FlyingMoveHelper extends EntityMoveHelper{
|
||||
this.entity.motionX += (speed * (d0 / d5) - this.entity.motionX) * speed;
|
||||
this.entity.motionZ += (speed * (d2 / d5) - this.entity.motionZ) * speed;
|
||||
|
||||
if (((EntityNPCFlying)this.entity).flyLimitAllow || !this.entity.ai.hasFlyLimit) {
|
||||
if (((EntityNPCFlying)this.entity).flyLimitAllow || !this.entity.ais.hasFlyLimit) {
|
||||
this.entity.motionY = verticalSpeed * (d1 / d5);
|
||||
if (this.entity.motionY > 0) {
|
||||
this.entity.motionY += 0.1D;
|
||||
|
||||
Reference in new issue
Block a user