mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-23 05:36:46 +01:00
A few more minor things.
This commit is contained in:
parent
a61423aa99
commit
d2493e89ca
@ -77,24 +77,24 @@ public class Salvage {
|
|||||||
|
|
||||||
public static int getSalvagedItemID(final ItemStack inHand) {
|
public static int getSalvagedItemID(final ItemStack inHand) {
|
||||||
int salvagedItem = 0;
|
int salvagedItem = 0;
|
||||||
if (ItemChecks.isDiamondTool(inHand) || ItemChecks.isDiamondArmor(inHand)) { salvagedItem = 264; }
|
if (ItemChecks.isDiamondTool(inHand) || ItemChecks.isDiamondArmor(inHand)) salvagedItem = 264;
|
||||||
else if (ItemChecks.isGoldTool(inHand) || ItemChecks.isGoldArmor(inHand)) { salvagedItem = 266; }
|
else if (ItemChecks.isGoldTool(inHand) || ItemChecks.isGoldArmor(inHand)) salvagedItem = 266;
|
||||||
else if (ItemChecks.isIronTool(inHand) || ItemChecks.isIronArmor(inHand)){ salvagedItem = 265; }
|
else if (ItemChecks.isIronTool(inHand) || ItemChecks.isIronArmor(inHand)) salvagedItem = 265;
|
||||||
else if (ItemChecks.isStoneTool(inHand)){ salvagedItem = 4; }
|
else if (ItemChecks.isStoneTool(inHand)) salvagedItem = 4;
|
||||||
else if (ItemChecks.isWoodTool(inHand)){ salvagedItem = 5; }
|
else if (ItemChecks.isWoodTool(inHand)) salvagedItem = 5;
|
||||||
else if ( ItemChecks.isLeatherArmor(inHand)){ salvagedItem = 334; }
|
else if ( ItemChecks.isLeatherArmor(inHand)) salvagedItem = 334;
|
||||||
return salvagedItem;
|
return salvagedItem;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static int getSalvagedAmount(final ItemStack inHand) {
|
public static int getSalvagedAmount(final ItemStack inHand) {
|
||||||
int salvagedAmount = 0;
|
int salvagedAmount = 0;
|
||||||
if (ItemChecks.isPickaxe(inHand) || ItemChecks.isAxe(inHand)) { salvagedAmount = 3; }
|
if (ItemChecks.isPickaxe(inHand) || ItemChecks.isAxe(inHand)) salvagedAmount = 3;
|
||||||
else if (ItemChecks.isShovel(inHand)) { salvagedAmount = 1; }
|
else if (ItemChecks.isShovel(inHand)) salvagedAmount = 1;
|
||||||
else if (ItemChecks.isSword(inHand) || ItemChecks.isHoe(inHand)) { salvagedAmount = 2; }
|
else if (ItemChecks.isSword(inHand) || ItemChecks.isHoe(inHand)) salvagedAmount = 2;
|
||||||
else if (ItemChecks.isHelmet(inHand)) { salvagedAmount = 5; }
|
else if (ItemChecks.isHelmet(inHand)) salvagedAmount = 5;
|
||||||
else if (ItemChecks.isChestplate(inHand)) { salvagedAmount = 8; }
|
else if (ItemChecks.isChestplate(inHand)) salvagedAmount = 8;
|
||||||
else if (ItemChecks.isPants(inHand)) { salvagedAmount = 7; }
|
else if (ItemChecks.isPants(inHand)) salvagedAmount = 7;
|
||||||
else if (ItemChecks.isBoots(inHand)) { salvagedAmount = 4; }
|
else if (ItemChecks.isBoots(inHand)) salvagedAmount = 4;
|
||||||
return salvagedAmount;
|
return salvagedAmount;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user