mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-08-20 09:57:09 +00:00
fix: fix the detection range for excessive logging
`getHighestNonEmptyY()` returning `-1` occurs normally when the chunk is entirely air. The caller (`Minecraft.World/LevelChunk.cpp:2400`) normalizes `-1` to `0`.
This commit is contained in:
parent
72a324c147
commit
c81991641a
|
|
@ -1311,7 +1311,7 @@ int CompressedTileStorage::getHighestNonEmptyY()
|
||||||
// Multiply by the number of vertical tiles in a block, and then add that again to be at the top of the block
|
// Multiply by the number of vertical tiles in a block, and then add that again to be at the top of the block
|
||||||
highestNonEmptyY = (highestYBlock * 4) + 4;
|
highestNonEmptyY = (highestYBlock * 4) + 4;
|
||||||
}
|
}
|
||||||
else
|
else if( allocatedSize != 1024 )
|
||||||
{
|
{
|
||||||
app.DebugPrintf("[CTS-WARN] getHighestNonEmptyY() returned -1! allocatedSize=%d indicesAndData=%p\n",
|
app.DebugPrintf("[CTS-WARN] getHighestNonEmptyY() returned -1! allocatedSize=%d indicesAndData=%p\n",
|
||||||
allocatedSize, indicesAndData);
|
allocatedSize, indicesAndData);
|
||||||
|
|
@ -1380,4 +1380,4 @@ void CompressedTileStorage::reverseIndices(unsigned char *indices)
|
||||||
{
|
{
|
||||||
System::ReverseUSHORT(&blockIndices[i]);
|
System::ReverseUSHORT(&blockIndices[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue