code style fix

This commit is contained in:
Sunch 2025-04-27 20:36:24 +08:00
parent fc5c5625cb
commit 5e8e9330e2
361 changed files with 4766 additions and 4650 deletions

View file

@ -17,7 +17,7 @@ class WheatBlock extends FlowableBlock{
}
return false;
}
public function onActivate(Item $item, Player $player){
if($item->getID() === DYE and $item->getMetadata() === 0x0F){ //Bonemeal
$this->meta += mt_rand(0, 3) + 2;
@ -48,7 +48,7 @@ class WheatBlock extends FlowableBlock{
$level->fastSetBlockUpdate($x, $y, $z, 0, 0);
}
}
public function getDrops(Item $item, Player $player){
$drops = [];
if($this->meta >= 0x07){
@ -59,7 +59,7 @@ class WheatBlock extends FlowableBlock{
$drops[] = [WHEAT_SEEDS, 0, 1];
}
}
return $drops;
}
}