mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 20:49:43 +00:00
Entities are now updated on block updates
This commit is contained in:
parent
9619ebc2af
commit
ff7fa066a5
1 changed files with 1 additions and 0 deletions
|
|
@ -751,6 +751,7 @@ class BlockAPI{
|
||||||
$level = $block->onUpdate($type);
|
$level = $block->onUpdate($type);
|
||||||
if($level === BLOCK_UPDATE_NORMAL){
|
if($level === BLOCK_UPDATE_NORMAL){
|
||||||
$this->blockUpdateAround($block, $level);
|
$this->blockUpdateAround($block, $level);
|
||||||
|
$this->server->api->entity->updateRadius($pos, 3);
|
||||||
}elseif($level === BLOCK_UPDATE_RANDOM){
|
}elseif($level === BLOCK_UPDATE_RANDOM){
|
||||||
$this->scheduleBlockUpdate($pos, Utils::getRandomUpdateTicks(), BLOCK_UPDATE_RANDOM);
|
$this->scheduleBlockUpdate($pos, Utils::getRandomUpdateTicks(), BLOCK_UPDATE_RANDOM);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue