stone with different meta will drop itself

This commit is contained in:
GameHerobrine 2023-08-30 12:54:37 +03:00
parent 81464e3e26
commit 083ace7eb1

View file

@ -40,7 +40,7 @@ class StoneBlock extends SolidBlock{
public function getDrops(Item $item, Player $player){
if($item->getPickaxeLevel() >= 1){
return array(
array(COBBLESTONE, 0, 1),
array($this->meta == 0 ? COBBLESTONE : $this->id, $this->meta, 1),
);
}else{
return array();