mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-16 11:58:00 +00:00
remove position parameters from BlockFactory::get() and BlockFactory::fromFullBlock()
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user