Fix salvaging to return more than 1 item. Fixes #2627

This commit is contained in:
t00thpick1 2015-11-04 15:35:22 -05:00
parent f84e98d836
commit 50e727d591

View File

@ -91,7 +91,7 @@ public class SalvageManager extends SkillManager {
return;
}
salvageableAmount = Math.max((int) (salvageableAmount * getMaxSalvagePercentage()), 1); // Always get at least something back, if you're capable of salvaging it.
salvageableAmount = Math.min((int) (salvageableAmount * getMaxSalvagePercentage()), 1); // Always get at least something back, if you're capable of salvaging it.
player.setItemInHand(new ItemStack(Material.AIR));
location.add(0, 1, 0);