mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 15:16:45 +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) {
|
||||
int salvagedItem = 0;
|
||||
if (ItemChecks.isDiamondTool(inHand) || ItemChecks.isDiamondArmor(inHand)) { salvagedItem = 264; }
|
||||
else if (ItemChecks.isGoldTool(inHand) || ItemChecks.isGoldArmor(inHand)) { salvagedItem = 266; }
|
||||
else if (ItemChecks.isIronTool(inHand) || ItemChecks.isIronArmor(inHand)){ salvagedItem = 265; }
|
||||
else if (ItemChecks.isStoneTool(inHand)){ salvagedItem = 4; }
|
||||
else if (ItemChecks.isWoodTool(inHand)){ salvagedItem = 5; }
|
||||
else if ( ItemChecks.isLeatherArmor(inHand)){ salvagedItem = 334; }
|
||||
if (ItemChecks.isDiamondTool(inHand) || ItemChecks.isDiamondArmor(inHand)) salvagedItem = 264;
|
||||
else if (ItemChecks.isGoldTool(inHand) || ItemChecks.isGoldArmor(inHand)) salvagedItem = 266;
|
||||
else if (ItemChecks.isIronTool(inHand) || ItemChecks.isIronArmor(inHand)) salvagedItem = 265;
|
||||
else if (ItemChecks.isStoneTool(inHand)) salvagedItem = 4;
|
||||
else if (ItemChecks.isWoodTool(inHand)) salvagedItem = 5;
|
||||
else if ( ItemChecks.isLeatherArmor(inHand)) salvagedItem = 334;
|
||||
return salvagedItem;
|
||||
}
|
||||
|
||||
public static int getSalvagedAmount(final ItemStack inHand) {
|
||||
int salvagedAmount = 0;
|
||||
if (ItemChecks.isPickaxe(inHand) || ItemChecks.isAxe(inHand)) { salvagedAmount = 3; }
|
||||
else if (ItemChecks.isShovel(inHand)) { salvagedAmount = 1; }
|
||||
else if (ItemChecks.isSword(inHand) || ItemChecks.isHoe(inHand)) { salvagedAmount = 2; }
|
||||
else if (ItemChecks.isHelmet(inHand)) { salvagedAmount = 5; }
|
||||
else if (ItemChecks.isChestplate(inHand)) { salvagedAmount = 8; }
|
||||
else if (ItemChecks.isPants(inHand)) { salvagedAmount = 7; }
|
||||
else if (ItemChecks.isBoots(inHand)) { salvagedAmount = 4; }
|
||||
if (ItemChecks.isPickaxe(inHand) || ItemChecks.isAxe(inHand)) salvagedAmount = 3;
|
||||
else if (ItemChecks.isShovel(inHand)) salvagedAmount = 1;
|
||||
else if (ItemChecks.isSword(inHand) || ItemChecks.isHoe(inHand)) salvagedAmount = 2;
|
||||
else if (ItemChecks.isHelmet(inHand)) salvagedAmount = 5;
|
||||
else if (ItemChecks.isChestplate(inHand)) salvagedAmount = 8;
|
||||
else if (ItemChecks.isPants(inHand)) salvagedAmount = 7;
|
||||
else if (ItemChecks.isBoots(inHand)) salvagedAmount = 4;
|
||||
return salvagedAmount;
|
||||
}
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user