mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-02-17 17:00:45 +08:00
Fixed NoSuchMethodError on Paper 1.10.2 #394
This commit is contained in:
parent
41d148fc4c
commit
5a87efe5ad
@ -175,7 +175,11 @@ public class TPSCountTimer extends AbsRunnable {
|
||||
* @return amount of entities
|
||||
*/
|
||||
private int getEntityCountPaper() {
|
||||
try {
|
||||
return ((Plan) plugin).getServer().getWorlds().stream().mapToInt(World::getEntityCount).sum();
|
||||
} catch (NoSuchMethodError e) {
|
||||
return getEntityCount();
|
||||
}
|
||||
}
|
||||
|
||||
public int getLatestPlayersOnline() {
|
||||
|
Loading…
Reference in New Issue
Block a user