mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 20:19:44 +00:00
code style fix
This commit is contained in:
parent
fc5c5625cb
commit
5e8e9330e2
361 changed files with 4766 additions and 4650 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue