Changed how blocks are registered, add API to allow registering custom blocks

This commit is contained in:
Dylan K. Taylor
2017-08-03 16:46:31 +01:00
parent ca3cf3e067
commit b912b9173c
3 changed files with 207 additions and 188 deletions

View File

@ -912,7 +912,7 @@ class Level implements ChunkManager, Metadatable{
}
public function addRandomTickedBlock(int $id){
$this->randomTickBlocks[$id] = Block::$list[$id];
$this->randomTickBlocks[$id] = get_class(Block::$list[$id]);
}
public function removeRandomTickedBlock(int $id){