mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-26 10:23:06 +00:00
Better Fix to Lock Movement and Rotation Locking during Abilities. Fix Interupting on Projectile Abilities
This commit is contained in:
1 parent
86055202a9
commit
326626ad8e
26 files changed
+266
-51
No files matched your search
@@ -55,7 +55,9 @@ public class EntityAIFollow extends EntityAIBase {
|
||||
if (updateTick < 10)
|
||||
return;
|
||||
updateTick = 0;
|
||||
this.npc.getLookHelper().setLookPositionWithEntity(owner, 10.0F, (float) this.npc.getVerticalFaceSpeed());
|
||||
if (!this.npc.abilities.isRotationLocked()) {
|
||||
this.npc.getLookHelper().setLookPositionWithEntity(owner, 10.0F, (float) this.npc.getVerticalFaceSpeed());
|
||||
}
|
||||
|
||||
double speed = 1 + distance / 150;
|
||||
if (speed > 3)
|
||||
|
||||
Reference in new issue
Block a user