Skip to content
Permalink
Browse files

Fix loading singleplayer map with custom blocks when 'use custom bloc…

…ks' is off causing air to get turned into a sprite (thanks fam0r)
  • Loading branch information...
UnknownShadow200 committed Jun 7, 2019
1 parent 3683f90 commit c1dd7d8f42107b3afb2a3ca711cf89ffb0919e40
Showing with 1 addition and 1 deletion.
  1. +1 −1 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;

0 comments on commit c1dd7d8

Please sign in to comment.
You can’t perform that action at this time.