Sapling: simplify condition

This commit is contained in:
Dylan K. Taylor
2021-10-13 23:00:38 +01:00
parent 0ac9f4fe61
commit 321345fcc8

View File

@ -118,12 +118,10 @@ class Sapling extends Flowable{
$ev = new StructureGrowEvent($this, $transaction, $player); $ev = new StructureGrowEvent($this, $transaction, $player);
$ev->call(); $ev->call();
if($ev->isCancelled()){ if(!$ev->isCancelled()){
return;
}
$transaction->apply(); $transaction->apply();
} }
}
public function getFuelTime() : int{ public function getFuelTime() : int{
return 100; return 100;