mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 10:22:56 +00:00
Merge branch master
This commit is contained in:
@ -22,6 +22,7 @@
|
||||
namespace pocketmine\block;
|
||||
|
||||
use pocketmine\item\Item;
|
||||
use pocketmine\item\Tool;
|
||||
|
||||
class DoubleWoodSlab extends Solid{
|
||||
|
||||
|
@ -24,6 +24,7 @@ namespace pocketmine\block;
|
||||
use pocketmine\item\Item;
|
||||
use pocketmine\item\Tool;
|
||||
use pocketmine\math\AxisAlignedBB;
|
||||
use pocketmine\level\sound\DoorSound;
|
||||
use pocketmine\Player;
|
||||
|
||||
class IronTrapdoor extends Transparent{
|
||||
@ -153,4 +154,4 @@ class IronTrapdoor extends Transparent{
|
||||
public function getToolType(){
|
||||
return Tool::TYPE_PICKAXE;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -73,7 +73,9 @@ class TallGrass extends Flowable{
|
||||
|
||||
public function getDrops(Item $item){
|
||||
if(mt_rand(0, 15) === 0){
|
||||
return [Item::WHEAT_SEEDS, 0, 1];
|
||||
return [
|
||||
[Item::WHEAT_SEEDS, 0, 1]
|
||||
];
|
||||
}
|
||||
|
||||
return [];
|
||||
|
Reference in New Issue
Block a user