mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 08:17:34 +00:00
Entities are now updated on block updates
This commit is contained in:
parent
9619ebc2af
commit
ff7fa066a5
@ -751,6 +751,7 @@ class BlockAPI{
|
||||
$level = $block->onUpdate($type);
|
||||
if($level === BLOCK_UPDATE_NORMAL){
|
||||
$this->blockUpdateAround($block, $level);
|
||||
$this->server->api->entity->updateRadius($pos, 3);
|
||||
}elseif($level === BLOCK_UPDATE_RANDOM){
|
||||
$this->scheduleBlockUpdate($pos, Utils::getRandomUpdateTicks(), BLOCK_UPDATE_RANDOM);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user