mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-06 09:55:30 +00:00
refactor: remove heap-allocated AABBs
This commit is contained in:
@@ -168,7 +168,7 @@ void FallingTile::causeFallDamage(float distance) {
|
||||
// entities (invalidating our iterator)
|
||||
std::vector<std::shared_ptr<Entity> >* entities =
|
||||
new std::vector<std::shared_ptr<Entity> >(
|
||||
*level->getEntities(shared_from_this(), bb));
|
||||
*level->getEntities(shared_from_this(), &bb));
|
||||
DamageSource* source = tile == Tile::anvil_Id
|
||||
? DamageSource::anvil
|
||||
: DamageSource::fallingBlock;
|
||||
@@ -242,4 +242,4 @@ Level* FallingTile::getLevel() { return level; }
|
||||
|
||||
void FallingTile::setHurtsEntities(bool value) { this->hurtEntities = value; }
|
||||
|
||||
bool FallingTile::displayFireAnimation() { return false; }
|
||||
bool FallingTile::displayFireAnimation() { return false; }
|
||||
|
||||
Reference in New Issue
Block a user