summaryrefslogtreecommitdiffstats
path: root/src/AssetManager.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/AssetManager.cpp2
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() {