mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-05-31 07:25:11 +00:00
refactor: remove heap-allocated AABBs
This commit is contained in:
@@ -38,7 +38,7 @@ void MoveControl::tick() {
|
||||
if (!_hasWanted) return;
|
||||
_hasWanted = false;
|
||||
|
||||
int yFloor = floor(mob->bb->y0 + .5f);
|
||||
int yFloor = floor(mob->bb.y0 + .5f);
|
||||
|
||||
double xd = wantedX - mob->x;
|
||||
double zd = wantedZ - mob->z;
|
||||
@@ -66,4 +66,4 @@ float MoveControl::rotlerp(float a, float b, float max) {
|
||||
diff = -max;
|
||||
}
|
||||
return a + diff;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user