mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Update TallGrass.php
This commit is contained in:
parent
ac60efb7ca
commit
26549f9e42
1 changed files with 2 additions and 6 deletions
|
|
@ -45,12 +45,8 @@ class TallGrassBlock extends FlowableBlock{
|
|||
|
||||
public function getDrops(Item $item, Player $player){
|
||||
$drops = array();
|
||||
if ($item->isShears()){
|
||||
$drops[] = array($this->id, $this->meta & 0x03, 1);
|
||||
}
|
||||
elseif(Utils::chance(15)){
|
||||
$drops[] = array(WHEAT_SEEDS, 0, 1)
|
||||
}
|
||||
if($item->isShears()) $drops[] = array($this->id, $this->meta & 0x03, 1);
|
||||
elseif(Utils::chance(15)) $drops[] = array(WHEAT_SEEDS, 0, 1);
|
||||
return $drops;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue