Fix loading singleplayer map with custom blocks when 'use custom blocks' is off causing air to get turned into a sprite (thanks fam0r)

This commit is contained in:
UnknownShadow200 2019-06-08 00:01:04 +10:00
parent 3683f90b21
commit c1dd7d8f42

View File

@ -581,7 +581,7 @@ static void Cw_Callback_4(struct NbtTag* tag) {
} }
} }
if (IsTag(tag->Parent, "BlockDefinitions")) { if (IsTag(tag->Parent, "BlockDefinitions") && Game_AllowCustomBlocks) {
const static String blockStr = String_FromConst("Block"); const static String blockStr = String_FromConst("Block");
if (!String_CaselessStarts(&tag->Name, &blockStr)) return; if (!String_CaselessStarts(&tag->Name, &blockStr)) return;