patch
This commit is contained in:
parent
0f49aaf119
commit
084baf10f6
1 changed files with 2 additions and 2 deletions
|
@ -131,8 +131,8 @@ public class EntityManager extends Manager {
|
|||
for (int i = 0; i < amount; i++) {
|
||||
Entity e = world.spawnEntity(new Location(world, x, y, z), type.getType());
|
||||
if (e instanceof Mob mob) {
|
||||
if (type.getItem() != null) {
|
||||
mob.getEquipment().setItemInMainHand(type.getItem());
|
||||
if (type.getHandItem() != null) {
|
||||
mob.getEquipment().setItemInMainHand(type.getHandItem());
|
||||
}
|
||||
if (!type.getArmor().isEmpty()) {
|
||||
mob.getEquipment().setArmorContents(type.getArmor().toArray(new ItemStack[0]));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue