forked from xjboss/KCauldronX
Initial commit (Forge 1291).
This commit is contained in:
12
patches/net/minecraft/entity/ai/EntityMoveHelper.java.patch
Normal file
12
patches/net/minecraft/entity/ai/EntityMoveHelper.java.patch
Normal file
@ -0,0 +1,12 @@
|
||||
--- ../src-base/minecraft/net/minecraft/entity/ai/EntityMoveHelper.java
|
||||
+++ ../src-work/minecraft/net/minecraft/entity/ai/EntityMoveHelper.java
|
||||
@@ -56,7 +56,8 @@
|
||||
|
||||
if (d3 >= 2.500000277905201E-7D)
|
||||
{
|
||||
- float f = (float)(Math.atan2(d1, d0) * 180.0D / Math.PI) - 90.0F;
|
||||
+ // CraftBukkit - Math -> TrigMath
|
||||
+ float f = (float)(org.bukkit.craftbukkit.TrigMath.atan2(d1, d0) * 180.0D / Math.PI) - 90.0F;
|
||||
this.entity.rotationYaw = this.limitAngle(this.entity.rotationYaw, f, 30.0F);
|
||||
this.entity.setAIMoveSpeed((float)(this.speed * this.entity.getEntityAttribute(SharedMonsterAttributes.movementSpeed).getAttributeValue()));
|
||||
|
Reference in New Issue
Block a user