making tile spawn compound cache use CacheableNbt instead of strings

This commit is contained in:
Dylan K. Taylor
2020-05-04 12:35:13 +01:00
parent c2857a91bd
commit a73c54bdd0
5 changed files with 40 additions and 23 deletions

View File

@ -90,7 +90,7 @@ final class ChunkSerializer{
$stream = new BinaryStream();
foreach($chunk->getTiles() as $tile){
if($tile instanceof Spawnable){
$stream->put($tile->getSerializedSpawnCompound());
$stream->put($tile->getSerializedSpawnCompound()->getEncodedNbt());
}
}