mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-17 11:35:08 -04:00
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:
parent
3683f90b21
commit
c1dd7d8f42
@ -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;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user