mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 19:02:59 +00:00
Level: fixed randomTickBlocks, also delete some useless code
the randomTickBlocks thing is populated with state IDs anyway, not variants...
This commit is contained in:
@ -1085,7 +1085,7 @@ class Level implements ChunkManager, Metadatable{
|
||||
|
||||
$state = $subChunk->getFullBlock($x, $y, $z);
|
||||
|
||||
if($this->randomTickBlocks[$state & ~BlockFactory::getStateMask($state >> 4)]){
|
||||
if($this->randomTickBlocks[$state]){
|
||||
/** @var Block $block */
|
||||
$block = BlockFactory::fromFullBlock($state, $this->temporalPosition->setComponents(
|
||||
$chunkX * 16 + $x,
|
||||
|
Reference in New Issue
Block a user