mirror of
https://github.com/GabsPuNs/Project-Zenith-Main.git
synced 2026-06-07 02:25:21 +00:00
TU24
This commit is contained in:
@@ -68,6 +68,6 @@ void DoorInteractGoal::tick()
|
||||
DoorTile *DoorInteractGoal::getDoorTile(int x, int y, int z)
|
||||
{
|
||||
int tileId = mob->level->getTile(x, y, z);
|
||||
if (!DoorTile::isDoor(tileId)) return nullptr;
|
||||
if (tileId != Tile::door_wood_Id) return nullptr;
|
||||
return static_cast<DoorTile *>(Tile::tiles[tileId]);
|
||||
}
|
||||
Reference in New Issue
Block a user