mirror of
https://github.com/BentoBoxWorld/Limits.git
synced 2024-06-21 20:24:42 +02:00
Remove async around entity call
https://github.com/BentoBoxWorld/Limits/issues/135
This commit is contained in:
parent
b16332da30
commit
4c5fdd6390
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user