From b9a64733eccac3197d0c768050577aa2e6f59249 Mon Sep 17 00:00:00 2001 From: LaG1924 <12997935+LaG1924@users.noreply.github.com> Date: Fri, 30 Mar 2018 03:31:56 +0500 Subject: Replaced fallback model to diamond block model --- src/AssetManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/AssetManager.cpp') 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() { -- cgit v1.2.3