Fix skull
This commit is contained in:
parent
2c89da8318
commit
e2f843de70
@ -39,9 +39,10 @@ public class FakePlayerRitual extends Ritual {
|
|||||||
slime.setPassenger(armorStand);
|
slime.setPassenger(armorStand);
|
||||||
slime.setSize(1);
|
slime.setSize(1);
|
||||||
EntityEquipment equipment = armorStand.getEquipment();
|
EntityEquipment equipment = armorStand.getEquipment();
|
||||||
ItemStack skull = new ItemStack(Material.SKULL);
|
ItemStack skull = new ItemStack(Material.SKULL_ITEM, 1, (short) 3);
|
||||||
SkullMeta meta = (SkullMeta) skull.getItemMeta();
|
SkullMeta meta = (SkullMeta) skull.getItemMeta();
|
||||||
meta.setOwner(caster.getName());
|
meta.setOwner(caster.getName());
|
||||||
|
skull.setItemMeta(meta);
|
||||||
equipment.setHelmet(skull);
|
equipment.setHelmet(skull);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user