mirror of
https://github.com/songoda/UltimateStacker.git
synced 2025-02-06 14:31:36 +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.
|
// Drop lead if applicable then remove our entity and mark it as processed.
|
||||||
if (entity.isLeashed())
|
if (entity.isLeashed()) {
|
||||||
entity.getWorld().dropItemNaturally(entity.getLocation(), CompatibleMaterial.LEAD.getItem());
|
Bukkit.getScheduler().runTask(plugin, () -> entity.getWorld().dropItemNaturally(entity.getLocation(), CompatibleMaterial.LEAD.getItem()));
|
||||||
|
}
|
||||||
livingEntities.add(entity);
|
livingEntities.add(entity);
|
||||||
Bukkit.getScheduler().runTask(plugin, entity::remove);
|
Bukkit.getScheduler().runTask(plugin, entity::remove);
|
||||||
processed.add(entity.getUniqueId());
|
processed.add(entity.getUniqueId());
|
||||||
|
Loading…
Reference in New Issue
Block a user