mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
Tool tier added to getDrops
This commit is contained in:
@ -47,7 +47,6 @@ class NetherBrickFence extends Transparent {
|
||||
}
|
||||
|
||||
public function getToolType(){
|
||||
//Different then the woodfences
|
||||
return Tool::TYPE_PICKAXE;
|
||||
}
|
||||
|
||||
@ -61,9 +60,9 @@ class NetherBrickFence extends Transparent {
|
||||
}
|
||||
|
||||
public function getDrops(Item $item){
|
||||
if($item->isPickaxe() >= Tool::TYPE_WOODEN){
|
||||
if($item->isPickaxe() >= Tool::TIER_WOODEN){
|
||||
return [
|
||||
[Item::NETHER_BRICK_FENCE, $this->meta, 1],
|
||||
[$this->id, $this->meta, 1],
|
||||
];
|
||||
}else{
|
||||
return [];
|
||||
|
Reference in New Issue
Block a user