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