Fix Rotation Get / Set for NPCs

This commit is contained in:
Kam committed 2025-02-10 21:01:53 -05:00
1 parent 44684277ba
commit a35db3f9e5
2 files changed
+16 -2

No files matched your search

@@ -93,8 +93,12 @@ public class ScriptNpc<T extends EntityNPCInterface> extends ScriptLiving<T> 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){