mirror of
https://github.com/songoda/UltimateStacker.git
synced 2025-01-29 18:51:21 +01:00
Make call to #dropItemNaturally sync
SD-9217
This commit is contained in:
parent
300b12502a
commit
dc54199fd6
@ -297,8 +297,9 @@ public class StackingTask extends BukkitRunnable {
|
||||
}
|
||||
|
||||
// Drop lead if applicable then remove our entity and mark it as processed.
|
||||
if (entity.isLeashed())
|
||||
entity.getWorld().dropItemNaturally(entity.getLocation(), CompatibleMaterial.LEAD.getItem());
|
||||
if (entity.isLeashed()) {
|
||||
Bukkit.getScheduler().runTask(plugin, () -> entity.getWorld().dropItemNaturally(entity.getLocation(), CompatibleMaterial.LEAD.getItem()));
|
||||
}
|
||||
livingEntities.add(entity);
|
||||
Bukkit.getScheduler().runTask(plugin, entity::remove);
|
||||
processed.add(entity.getUniqueId());
|
||||
|
Loading…
Reference in New Issue
Block a user