mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
isPickaxe replaced with getPickaxeLevel, reactor drops correct block now
This commit is contained in:
parent
81d46e71aa
commit
df0db01425
38 changed files with 73 additions and 60 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue