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

@ -60,7 +60,7 @@ class GlowingRedstoneOre extends Solid{
}
public function getDrops(Item $item){
if($item->isPickaxe() >= 4){
if($item->isPickaxe() >= Tool::TIER_IRON){
return [
[Item::REDSTONE_DUST, 0, mt_rand(4, 5)],
];