mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-20 23:46:57 +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. By: GJ <gjmcferrin@gmail.com>
This commit is contained in:
parent
42f39726c3
commit
f612d70b0d
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…
Reference in a new issue