Liquid: fixed implicit assumption of 0 == air

This commit is contained in:
Dylan K. Taylor 2022-01-28 21:07:41 +00:00
parent e9a6c0ba58
commit cfdbfa3d58
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -342,7 +342,7 @@ abstract class Liquid extends Transparent{
$ev = new BlockSpreadEvent($block, $this, $new);
$ev->call();
if(!$ev->isCancelled()){
if($block->getId() > 0){
if($block->getId() !== BlockLegacyIds::AIR){
$this->position->getWorld()->useBreakOn($block->position);
}