From c1dd7d8f42107b3afb2a3ca711cf89ffb0919e40 Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Sat, 8 Jun 2019 00:01:04 +1000 Subject: [PATCH] Fix loading singleplayer map with custom blocks when 'use custom blocks' is off causing air to get turned into a sprite (thanks fam0r) --- src/Formats.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Formats.c b/src/Formats.c index 976cfc432..095187d6e 100644 --- a/src/Formats.c +++ b/src/Formats.c @@ -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"); if (!String_CaselessStarts(&tag->Name, &blockStr)) return;