mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-10 03:32:31 +00:00
refactor: make Tile::getAABB return optional<AABB>
This commit is contained in:
@@ -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