mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-07-19 00:38:15 +00:00
refactor: make Tile::getTileAABB return AABB
This commit is contained in:
@@ -85,10 +85,9 @@ bool DoorTile::isCubeShaped() { return false; }
|
||||
|
||||
int DoorTile::getRenderShape() { return Tile::SHAPE_DOOR; }
|
||||
|
||||
AABB* DoorTile::getTileAABB(Level* level, int x, int y, int z) {
|
||||
AABB DoorTile::getTileAABB(Level* level, int x, int y, int z) {
|
||||
updateShape(level, x, y, z);
|
||||
AABB* retval = Tile::getTileAABB(level, x, y, z);
|
||||
return retval;
|
||||
return Tile::getTileAABB(level, x, y, z);
|
||||
}
|
||||
|
||||
std::optional<AABB> DoorTile::getAABB(Level* level, int x, int y, int z) {
|
||||
|
||||
Reference in New Issue
Block a user