mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-01-23 08:31:34 +01:00
Fixed HeadGetter overwriting item amount (#941)
This commit is contained in:
parent
115f434a30
commit
fd5f4841b2
@ -37,7 +37,7 @@ public class HeadGetter {
|
||||
Iterator<Entry<String, PanelItem>> it = names.entrySet().iterator();
|
||||
if (it.hasNext()) {
|
||||
Entry<String, PanelItem> en = it.next();
|
||||
ItemStack playerSkull = new ItemStack(Material.PLAYER_HEAD, 1);
|
||||
ItemStack playerSkull = new ItemStack(Material.PLAYER_HEAD, en.getValue().getItem().getAmount());
|
||||
SkullMeta meta = (SkullMeta) playerSkull.getItemMeta();
|
||||
meta.setOwner(en.getKey());
|
||||
playerSkull.setItemMeta(meta);
|
||||
|
Loading…
Reference in New Issue
Block a user