BlockFormEvent: Added getCausingBlock() method (#5226)

This commit is contained in:
Colin
2022-08-15 17:26:48 +02:00
committed by GitHub
parent cb020988d4
commit 304bb84af2
3 changed files with 27 additions and 7 deletions

View File

@ -366,7 +366,7 @@ abstract class Liquid extends Transparent{
}
protected function liquidCollide(Block $cause, Block $result) : bool{
$ev = new BlockFormEvent($this, $result);
$ev = new BlockFormEvent($this, $result, $cause);
$ev->call();
if(!$ev->isCancelled()){
$world = $this->position->getWorld();