Tool tier added to getDrops

This commit is contained in:
Intyre
2015-10-11 00:52:44 +02:00
parent 958c3589c9
commit 94b79ac28a
35 changed files with 35 additions and 37 deletions

View File

@ -45,7 +45,7 @@ class DiamondOre extends Solid{
}
public function getDrops(Item $item){
if($item->isPickaxe() >= 4){
if($item->isPickaxe() >= Tool::TIER_IRON){
return [
[Item::DIAMOND, 0, 1],
];