remove position parameters from BlockFactory::get() and BlockFactory::fromFullBlock()

This commit is contained in:
Dylan K. Taylor
2019-08-24 17:19:27 +01:00
parent c9cd6ee038
commit 6a4ae4cb94
4 changed files with 19 additions and 27 deletions

View File

@@ -996,11 +996,8 @@ class World implements ChunkManager{
if(isset($this->randomTickBlocks[$state])){
/** @var Block $block */
$block = BlockFactory::fromFullBlock($state, $this->temporalPosition->setComponents(
$chunkX * 16 + $x,
($Y << 4) + $y,
$chunkZ * 16 + $z
));
$block = BlockFactory::fromFullBlock($state);
$block->position($this, $chunkX * 16 + $x, ($Y << 4) + $y, $chunkZ * 16 + $z);
$block->onRandomTick();
}
}