RuntimeBlockMapping: these IDs are not static any more

This commit is contained in:
Dylan K. Taylor
2020-05-11 12:40:55 +01:00
parent e3dec95b75
commit 6b037d6a4c
3 changed files with 4 additions and 4 deletions

View File

@ -70,7 +70,7 @@ final class ChunkSerializer{
//zigzag and just shift directly.
$stream->putUnsignedVarInt(count($palette) << 1); //yes, this is intentionally zigzag
foreach($palette as $p){
$stream->putUnsignedVarInt($blockMapper->toStaticRuntimeId($p >> 4, $p & 0xf) << 1);
$stream->putUnsignedVarInt($blockMapper->toRuntimeId($p >> 4, $p & 0xf) << 1);
}
}
}