mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-13 11:18:23 +01:00
[Bleeding] Ensure skeletons spawn with equipment. Fixes BUKKIT-2836
Previously, when a skeleton was spawned via the spawn(...) function, the resulting skeleton had no equipped bow and therefore could not properly attack. This fix gives all skeletons the proper equipment and ensures that they are able to attack.
This commit is contained in:
parent
81e560621f
commit
ec41228fb5
1 changed files with 4 additions and 0 deletions
|
@ -1032,6 +1032,10 @@ public class CraftWorld implements World {
|
|||
}
|
||||
|
||||
if (entity != null) {
|
||||
if (entity instanceof EntityInsentient) {
|
||||
((EntityInsentient) entity).a((GroupDataEntity) null); // Should be prepare?
|
||||
}
|
||||
|
||||
world.addEntity(entity, reason);
|
||||
return (T) entity.getBukkitEntity();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue