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

@@ -225,6 +225,16 @@ public class ScriptLivingBase<T extends EntityLivingBase> extends ScriptEntity<T
return getMCEntity();
}
@Override
public float getRotation(){
return entity.renderYawOffset;
}
@Override
public void setRotation(float rotation){
entity.renderYawOffset = rotation;
}
/**
* Makes the entity swing its hand
*/