mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2026-08-18 11:26:06 +00:00
avoid visual desync for salvage Fixes #5252
This commit is contained in:
@ -144,6 +144,8 @@ public class SalvageManager extends SkillManager {
|
||||
StringUtils.getPrettyMaterialString(item.getType()));
|
||||
|
||||
player.getInventory().setItemInMainHand(new ItemStack(Material.AIR));
|
||||
// avoids visual desync
|
||||
player.updateInventory();
|
||||
|
||||
Location anvilLoc = location.clone();
|
||||
Location playerLoc = player.getLocation().clone();
|
||||
|
||||
Reference in New Issue
Block a user