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->call();
if($ev->isCancelled()){
return;
}
if(!$ev->isCancelled()){
$transaction->apply();
}
}
public function getFuelTime() : int{
return 100;