mirror of
https://github.com/songoda/EpicFarming.git
synced 2025-02-19 05:51:47 +01:00
Spawn mobs sync.
This commit is contained in:
parent
af6f0d9f91
commit
89486a686d
@ -141,8 +141,10 @@ public class ModuleAutoBreeding extends Module {
|
||||
|
||||
private void handleStackedBreed(LivingEntity entity) {
|
||||
EntityStackerManager.removeOne(entity);
|
||||
LivingEntity spawned = (LivingEntity) entity.getWorld().spawnEntity(entity.getLocation(), entity.getType());
|
||||
handleBreed(spawned);
|
||||
Bukkit.getScheduler().runTask(plugin, () -> {
|
||||
LivingEntity spawned = (LivingEntity) entity.getWorld().spawnEntity(entity.getLocation(), entity.getType());
|
||||
handleBreed(spawned);
|
||||
});
|
||||
}
|
||||
|
||||
private void handleBreed(Entity entity) {
|
||||
|
Loading…
Reference in New Issue
Block a user