mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 02:42:58 +00:00
Sapling: simplify condition
This commit is contained in:
@ -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;
|
||||||
|
Reference in New Issue
Block a user