mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-23 11:26:37 +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 = 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{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user