getPosition work
Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit

This commit is contained in:
austin 2025-06-08 18:43:05 -04:00
parent ab1c1c36bf
commit 4ae4f176c5
2 changed files with 2 additions and 1 deletions

View File

@ -2135,6 +2135,7 @@ Fix cursor position setting
Fix many places where entity position being set on vector fetched from getPosition
- Fixed first person model placement update
- Fixed skybox placement update
Undo getPosition new alloc to lower memory footprint

View File

@ -22,7 +22,7 @@ public class EntityUtils {
* @return The position of the entity
*/
public static Vector3d getPosition(Entity e){
return new Vector3d((Vector3d)e.getData(EntityDataStrings.DATA_STRING_POSITION));
return (Vector3d)e.getData(EntityDataStrings.DATA_STRING_POSITION);
}
/**