mirror of
https://github.com/songoda/EpicFarming.git
synced 2024-11-30 14:33:28 +01:00
Fix async sound play causes farms not to work
This commit is contained in:
parent
ec2c019745
commit
10924217a7
@ -63,15 +63,15 @@ public class ModuleAutoButcher extends Module {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (LivingEntity entity : entities) {
|
Bukkit.getScheduler().runTask(this.plugin, () -> {
|
||||||
entity.setMetadata("EFA-TAGGED", new FixedMetadataValue(this.plugin, farm.getLocation()));
|
for (LivingEntity entity : entities) {
|
||||||
XSound.ENTITY_PLAYER_ATTACK_SWEEP.play(entity);
|
entity.setMetadata("EFA-TAGGED", new FixedMetadataValue(this.plugin, farm.getLocation()));
|
||||||
Bukkit.getScheduler().runTask(this.plugin, () -> {
|
XSound.ENTITY_PLAYER_ATTACK_SWEEP.play(entity);
|
||||||
entity.damage(99999999, entity);
|
entity.damage(99999999, entity);
|
||||||
Methods.animate(farm.getLocation(), XMaterial.IRON_SWORD);
|
Methods.animate(farm.getLocation(), XMaterial.IRON_SWORD);
|
||||||
});
|
|
||||||
return;
|
}
|
||||||
}
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user