mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-18 09:09:08 +00:00
Enabled fly button in movement, and set max value for fields as Integer.MAX_VALUE for various fields.
This commit is contained in:
1 parent
17eb612fb8
commit
44d4e74279
10 files changed
+30
-27
No files matched your search
@@ -73,6 +73,9 @@ public abstract class EntityNPCFlying extends EntityNPCInterface {
|
||||
d5 = (double)MathHelper.sqrt_double(d3);
|
||||
this.motionX += (d0 / d5 * 0.5D - this.motionX) * 0.6000000238418579D;
|
||||
this.motionZ += (d1 / d5 * 0.5D - this.motionZ) * 0.6000000238418579D;
|
||||
|
||||
this.motionX *= this.ai.getWalkingSpeed()/10.0D;
|
||||
this.motionZ *= this.ai.getWalkingSpeed()/10.0D;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user