mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-24 01:06:01 +01:00
Support asynchronous events; Addresses BUKKIT-1212
By: Wesley Wolfe <weswolf@aol.com>
This commit is contained in:
parent
add9437bd5
commit
efd15866c4
1 changed files with 4 additions and 0 deletions
|
@ -1182,4 +1182,8 @@ public final class CraftServer implements Server {
|
|||
public int getWaterAnimalSpawnLimit() {
|
||||
return waterAnimalSpawn;
|
||||
}
|
||||
|
||||
public boolean isPrimaryThread() {
|
||||
return Thread.currentThread().equals(console.primaryThread);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue