mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 00:07:30 +00:00
Sapling: simplify condition
This commit is contained in:
parent
0ac9f4fe61
commit
321345fcc8
@ -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{
|
||||
|
Loading…
x
Reference in New Issue
Block a user