Level: fixed randomTickBlocks, also delete some useless code

the randomTickBlocks thing is populated with state IDs anyway, not variants...
This commit is contained in:
Dylan K. Taylor
2019-02-24 13:10:45 +00:00
parent 369a1e1472
commit 899081e1b9
2 changed files with 1 additions and 11 deletions

View File

@ -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,