Fixed a bug where Salvage was giving back too many materials

This commit is contained in:
nossr50
2019-02-01 10:22:55 -08:00
parent 90520cd50b
commit c6a4cbd715
3 changed files with 6 additions and 3 deletions

View File

@ -103,8 +103,8 @@ public class SalvageManager extends SkillManager {
return;
}
//Amount of materials to salvage based on rank
salvageableAmount = getSalvageableAmount();
salvageableAmount = Math.min(salvageableAmount, getSalvageableAmount()); // Always get at least something back, if you're capable of salvaging it.
player.getInventory().setItemInMainHand(new ItemStack(Material.AIR));
location.add(0.5, 1, 0.5);