refactor: make Tile::getAABB return optional<AABB>
This commit is contained in:
1 parent
78b5255224
commit
7158fd398f
71 files changed
+205
-139
No files matched your search
@@ -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];
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user