Entities are now updated on block updates

This commit is contained in:
Shoghi Cervantes 2013-06-12 12:20:56 +02:00
parent 9619ebc2af
commit ff7fa066a5

View File

@ -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);
}