Skip to content

Commit

Permalink
Remove async around entity call
Browse files Browse the repository at this point in the history
  • Loading branch information
tastybento committed Jul 24, 2021
1 parent b16332d commit 4c5fdd6
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -212,10 +212,8 @@ private void checkLimit(Cancellable c, LivingEntity e, SpawnReason reason, boole
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) {
Expand Down

0 comments on commit 4c5fdd6

Please sign in to comment.