Support asynchronous events; Addresses BUKKIT-1212

This commit is contained in:
Wesley Wolfe
2012-06-13 21:52:49 -05:00
parent f58e514192
commit ed6d4c7759
2 changed files with 9 additions and 3 deletions

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);
}
}