From e277252a1d490ae25f81f771972b492e64af8bc8 Mon Sep 17 00:00:00 2001 From: Qiuzhizhe <42761326+quizhizhe@users.noreply.github.com> Date: Fri, 3 Feb 2023 18:22:08 -0800 Subject: [PATCH] Fix AABB::getCenter() --- LiteLoader/Header/MC/AABB.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LiteLoader/Header/MC/AABB.hpp b/LiteLoader/Header/MC/AABB.hpp index 81ec27c..b29a030 100644 --- a/LiteLoader/Header/MC/AABB.hpp +++ b/LiteLoader/Header/MC/AABB.hpp @@ -50,7 +50,7 @@ public: MCAPI static class AABB const EMPTY; inline Vec3 getCenter() const{ - return (min + max)/2; + return min+(max-min)*0.5; }; inline Vec3& operator[](int index) {