Skip to content

Commit

Permalink
Temporarily not do async checked for entity spawns
Browse files Browse the repository at this point in the history
  • Loading branch information
tastybento committed Sep 18, 2020
1 parent 33d16d1 commit 0c107f2
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ public void onCreatureSpawn(final CreatureSpawnEvent e) {
checkLimit(e, e.getEntity(), e.getSpawnReason(), bypass, false);
break;
default:
// Check limit async
checkLimit(e, e.getEntity(), e.getSpawnReason(), bypass, true);
// Check limit sync - TODO, work out why async causes problems.
checkLimit(e, e.getEntity(), e.getSpawnReason(), bypass, false);
break;

}
Expand Down Expand Up @@ -234,7 +234,7 @@ public void onBlock(HangingPlaceEvent e) {
* Check if a creature is allowed to spawn or not
* @param e - CreatureSpawnEvent
* @param bypass - true if the player involved can bypass the checks
* @param async
* @param async - true if check can be done async, false if not
*/
private void checkLimit(Cancellable c, LivingEntity e, SpawnReason reason, boolean bypass, boolean async) {
Location l = e.getLocation();
Expand Down

0 comments on commit 0c107f2

Please sign in to comment.