Added a mechanism for blocks to detect dynamic state properties from surroundings

This commit is contained in:
Dylan K. Taylor
2018-10-26 15:57:32 +01:00
parent b2201c8c59
commit 3af293f024
6 changed files with 63 additions and 37 deletions

View File

@ -118,8 +118,8 @@ abstract class Liquid extends Transparent{
return $block->falling ? 0 : $block->decay;
}
public function clearCaches() : void{
parent::clearCaches();
public function updateState() : void{
parent::updateState();
$this->flowVector = null;
}