diff --git a/src/main/java/noppes/npcs/scripted/entity/ScriptLivingBase.java b/src/main/java/noppes/npcs/scripted/entity/ScriptLivingBase.java index 33e38d308..f49e8f213 100644 --- a/src/main/java/noppes/npcs/scripted/entity/ScriptLivingBase.java +++ b/src/main/java/noppes/npcs/scripted/entity/ScriptLivingBase.java @@ -225,6 +225,16 @@ public class ScriptLivingBase extends ScriptEntity extends ScriptLiving imp } public void setRotation(float rotation){ - npc.ai.orientation = (int)rotation; - super.setRotation(rotation); + super.setRotation(rotation); + int r = (int) rotation; + if(entity.ai.orientation != r) { + entity.ai.orientation = r; + entity.updateClient = true; + } } public void setRotationType(int rotationType){