isPickaxe replaced with getPickaxeLevel, reactor drops correct block now

This commit is contained in:
GameHerobrine 2022-09-06 18:33:08 +03:00
parent 81d46e71aa
commit df0db01425
38 changed files with 73 additions and 60 deletions

View file

@ -245,7 +245,7 @@ class Item{
BOW => 385 //x3
);
if(($type = $this->isPickaxe()) === false){
if(($type = $this->getPickaxeLevel()) === false){
if(($type = $this->isAxe()) === false){
if(($type = $this->isSword()) === false){
if(($type = $this->isShovel()) === false){
@ -259,7 +259,7 @@ class Item{
return $levels[$type];
}
public function isPickaxe(){ //Returns false or level of the pickaxe
public function getPickaxeLevel(){ //Returns false or level of the pickaxe
switch($this->id){
case IRON_PICKAXE:
return 4;