mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-07 23:52:11 -07:00
Support asynchronous events; Addresses BUKKIT-1212
This commit is contained in:
@@ -1182,4 +1182,8 @@ public final class CraftServer implements Server {
|
||||
public int getWaterAnimalSpawnLimit() {
|
||||
return waterAnimalSpawn;
|
||||
}
|
||||
|
||||
public boolean isPrimaryThread() {
|
||||
return Thread.currentThread().equals(console.primaryThread);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user