diff options
Diffstat (limited to 'src/AssetManager.cpp')
-rw-r--r-- | src/AssetManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/AssetManager.cpp b/src/AssetManager.cpp index bffc246..f5284a4 100644 --- a/src/AssetManager.cpp +++ b/src/AssetManager.cpp @@ -235,7 +235,7 @@ const BlockModel *AssetManager::GetBlockModelByBlockId(BlockId block) { std::string blockName = blockIdToBlockName[block]; auto modelIt = models.find(blockName); - return (modelIt == models.end()) ? nullptr : &modelIt->second; + return (modelIt == models.end()) ? GetBlockModelByBlockId(BlockId{ 57,0 }) : &modelIt->second; } void AssetManager::LoadBlockModels() { |