Support asynchronous events; Addresses BUKKIT-1212

By: Wesley Wolfe <weswolf@aol.com>
This commit is contained in:
CraftBukkit/Spigot 2012-06-13 21:52:49 -05:00
parent add9437bd5
commit efd15866c4

View file

@ -1182,4 +1182,8 @@ public final class CraftServer implements Server {
public int getWaterAnimalSpawnLimit() {
return waterAnimalSpawn;
}
public boolean isPrimaryThread() {
return Thread.currentThread().equals(console.primaryThread);
}
}