mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 02:08:21 +00:00
Changed how blocks are registered, add API to allow registering custom blocks
This commit is contained in:
@ -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){
|
||||
|
Reference in New Issue
Block a user