mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 10:53:05 +00:00
Added Inventory interfaces and types, updated long array() to []
This commit is contained in:
@ -79,7 +79,7 @@ class Wheat extends Flowable{
|
||||
}
|
||||
|
||||
public function getDrops(Item $item){
|
||||
$drops = array();
|
||||
$drops = [];
|
||||
if($this->meta >= 0x07){
|
||||
$drops[] = array(Item::WHEAT, 0, 1);
|
||||
$drops[] = array(Item::WHEAT_SEEDS, 0, mt_rand(0, 3));
|
||||
|
Reference in New Issue
Block a user