Sapling: simplify condition

This commit is contained in:
Dylan K. Taylor 2021-10-13 23:00:38 +01:00
parent 0ac9f4fe61
commit 321345fcc8
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

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