Update inventory after adding items back
This commit is contained in:
parent
fab02637f4
commit
7f547bff68
|
|
@ -72,6 +72,7 @@ public class SellWindow extends GUI {
|
|||
Placeholder.parsed("total_points", String.valueOf(pointsManagement.getPoints(uuid)))));
|
||||
player.getInventory().addItem(itemsToMoveBack.toArray(ItemStack[]::new)).values()
|
||||
.forEach(item -> player.getWorld().dropItem(player.getLocation(), item).setOwner(uuid));
|
||||
player.updateInventory();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user