Remove async around entity call

https://github.com/BentoBoxWorld/Limits/issues/135
This commit is contained in:
tastybento 2021-07-24 14:13:44 -07:00
parent b16332da30
commit 4c5fdd6390

View File

@ -212,10 +212,8 @@ public class EntityLimitListener implements Listener {
Location l = e.getLocation();
if (async) {
c.setCancelled(true);
Bukkit.getScheduler().runTaskAsynchronously(BentoBox.getInstance(), () -> processIsland(c, e, l, reason, bypass, async));
} else {
processIsland(c, e, l, reason, bypass, async);
}
processIsland(c, e, l, reason, bypass, async);
}
private void processIsland(Cancellable c, LivingEntity e, Location l, SpawnReason reason, boolean bypass, boolean async) {