mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 21:26:46 +01:00
Fix #4234
This commit is contained in:
parent
a28d1cd537
commit
5d294d6dc3
@ -100,7 +100,6 @@ public class SalvageManager extends SkillManager {
|
|||||||
|
|
||||||
potentialSalvageYield = Math.min(potentialSalvageYield, getSalvageLimit()); // Always get at least something back, if you're capable of salvaging it.
|
potentialSalvageYield = Math.min(potentialSalvageYield, getSalvageLimit()); // 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);
|
location.add(0.5, 1, 0.5);
|
||||||
|
|
||||||
Map<Enchantment, Integer> enchants = item.getEnchantments();
|
Map<Enchantment, Integer> enchants = item.getEnchantments();
|
||||||
@ -140,6 +139,8 @@ public class SalvageManager extends SkillManager {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
player.getInventory().setItemInMainHand(new ItemStack(Material.AIR));
|
||||||
|
|
||||||
Location anvilLoc = location.clone();
|
Location anvilLoc = location.clone();
|
||||||
Location playerLoc = player.getLocation().clone();
|
Location playerLoc = player.getLocation().clone();
|
||||||
double distance = anvilLoc.distance(playerLoc);
|
double distance = anvilLoc.distance(playerLoc);
|
||||||
|
Loading…
Reference in New Issue
Block a user