mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-17 09:55:11 +00:00
Fix Rotation Get / Set for NPCs
This commit is contained in:
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){
|
||||
|
||||
Reference in new issue
Block a user