mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 12: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){
|
public function getDrops(Item $item, Player $player){
|
||||||
$drops = array();
|
$drops = array();
|
||||||
if ($item->isShears()){
|
if($item->isShears()) $drops[] = array($this->id, $this->meta & 0x03, 1);
|
||||||
$drops[] = array($this->id, $this->meta & 0x03, 1);
|
elseif(Utils::chance(15)) $drops[] = array(WHEAT_SEEDS, 0, 1);
|
||||||
}
|
|
||||||
elseif(Utils::chance(15)){
|
|
||||||
$drops[] = array(WHEAT_SEEDS, 0, 1)
|
|
||||||
}
|
|
||||||
return $drops;
|
return $drops;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue