mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-07-18 14:58:27 +00:00
refactor: remove heap-allocated AABBs
This commit is contained in:
@@ -34,7 +34,7 @@ void FlyingMob::travel(float xa, float ya) {
|
||||
float friction = 0.91f;
|
||||
if (onGround) {
|
||||
friction = 0.6f * 0.91f;
|
||||
int t = level->getTile(Mth::floor(x), Mth::floor(bb->y0) - 1,
|
||||
int t = level->getTile(Mth::floor(x), Mth::floor(bb.y0) - 1,
|
||||
Mth::floor(z));
|
||||
if (t > 0) {
|
||||
friction = Tile::tiles[t]->friction * 0.91f;
|
||||
@@ -48,7 +48,7 @@ void FlyingMob::travel(float xa, float ya) {
|
||||
friction = 0.91f;
|
||||
if (onGround) {
|
||||
friction = 0.6f * 0.91f;
|
||||
int t = level->getTile(Mth::floor(x), Mth::floor(bb->y0) - 1,
|
||||
int t = level->getTile(Mth::floor(x), Mth::floor(bb.y0) - 1,
|
||||
Mth::floor(z));
|
||||
if (t > 0) {
|
||||
friction = Tile::tiles[t]->friction * 0.91f;
|
||||
@@ -70,4 +70,4 @@ void FlyingMob::travel(float xa, float ya) {
|
||||
walkAnimPos += walkAnimSpeed;
|
||||
}
|
||||
|
||||
bool FlyingMob::onLadder() { return false; }
|
||||
bool FlyingMob::onLadder() { return false; }
|
||||
|
||||
Reference in New Issue
Block a user