Skip to content

Commit

Permalink
fix warning (bool to int16)
Browse files Browse the repository at this point in the history
  • Loading branch information
EtlamGit committed Nov 28, 2021
1 parent a385e77 commit e81a008
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chunk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ bool Chunk::loadSection1343(ChunkSection *cs, const Tag *section) {
// check if some Block is different to minecraft:air
bool sectionContainsData = false;
for (int i = 0; i < 2048; i++) {
sectionContainsData |= cs->blocks[i];
sectionContainsData |= (cs->blocks[i] != 0);
}
return sectionContainsData;
}
Expand Down

0 comments on commit e81a008

Please sign in to comment.