mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-07-18 16:48:22 +00:00
refactor: remove heap-allocated AABBs
This commit is contained in:
@@ -91,7 +91,7 @@ void Slime::tick() {
|
||||
float d = random->nextFloat() * 0.5f + 0.5f;
|
||||
float xd = Mth::sin(dir) * size * 0.5f * d;
|
||||
float zd = Mth::cos(dir) * size * 0.5f * d;
|
||||
level->addParticle(getParticleName(), x + xd, bb->y0, z + zd, 0, 0,
|
||||
level->addParticle(getParticleName(), x + xd, bb.y0, z + zd, 0, 0,
|
||||
0);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user