mirror of
https://github.com/songoda/EpicFarming.git
synced 2025-02-21 23:11:44 +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) {
|
private void handleStackedBreed(LivingEntity entity) {
|
||||||
EntityStackerManager.removeOne(entity);
|
EntityStackerManager.removeOne(entity);
|
||||||
|
Bukkit.getScheduler().runTask(plugin, () -> {
|
||||||
LivingEntity spawned = (LivingEntity) entity.getWorld().spawnEntity(entity.getLocation(), entity.getType());
|
LivingEntity spawned = (LivingEntity) entity.getWorld().spawnEntity(entity.getLocation(), entity.getType());
|
||||||
handleBreed(spawned);
|
handleBreed(spawned);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
private void handleBreed(Entity entity) {
|
private void handleBreed(Entity entity) {
|
||||||
|
Loading…
Reference in New Issue
Block a user