mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 02:42:58 +00:00
Liquid: do not schedule delayed blockupdate when hardening occurs on nearby blockupdate
fix #3390 fix #3392
This commit is contained in:
@ -251,8 +251,9 @@ abstract class Liquid extends Transparent{
|
||||
}
|
||||
|
||||
public function onNearbyBlockChange() : void{
|
||||
$this->checkForHarden();
|
||||
$this->pos->getWorldNonNull()->scheduleDelayedBlockUpdate($this->pos, $this->tickRate());
|
||||
if(!$this->checkForHarden()){
|
||||
$this->pos->getWorldNonNull()->scheduleDelayedBlockUpdate($this->pos, $this->tickRate());
|
||||
}
|
||||
}
|
||||
|
||||
public function onScheduledUpdate() : void{
|
||||
@ -469,8 +470,8 @@ abstract class Liquid extends Transparent{
|
||||
return ($decay >= 0 && $blockDecay >= $decay) ? $decay : $blockDecay;
|
||||
}
|
||||
|
||||
protected function checkForHarden() : void{
|
||||
|
||||
protected function checkForHarden() : bool{
|
||||
return false;
|
||||
}
|
||||
|
||||
protected function liquidCollide(Block $cause, Block $result) : bool{
|
||||
|
Reference in New Issue
Block a user