refactor: make Tile::getAABB return optional<AABB>

This commit is contained in:
orng
2026-03-28 00:11:19 -05:00
parent 78b5255224
commit 7158fd398f
71 changed files with 205 additions and 139 deletions

View File

@@ -49,7 +49,7 @@ void SkullTile::updateShape(LevelSource* level, int x, int y, int z,
}
}
AABB* SkullTile::getAABB(Level* level, int x, int y, int z) {
std::optional<AABB> SkullTile::getAABB(Level* level, int x, int y, int z) {
updateShape(level, x, y, z);
return BaseEntityTile::getAABB(level, x, y, z);
}
@@ -316,4 +316,4 @@ Icon* SkullTile::getTexture(int face, int data) {
std::wstring SkullTile::getTileItemIconName() {
return getIconName() + L"_" + SkullItem::ICON_NAMES[0];
}
}