Skip to content

Commit

Permalink
add missing this
Browse files Browse the repository at this point in the history
  • Loading branch information
xGinko committed Dec 24, 2023
1 parent 8b57479 commit 0882ec3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public double getTPS(final World world, final int chunkX, final int chunkZ) {
public double getTPS(Location location) {
Double tps = this.cached_tps.getIfPresent(true);
if (tps == null) {
tps = server.getTPS()[0];
tps = this.server.getTPS()[0];
this.cached_tps.put(true, tps);
}
return tps;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public static TPSCache create(long checkDelayMillis) {
public double getTPS() {
Double tps = this.cached_tps.getIfPresent(true);
if (tps == null) {
tps = server.getTPS()[0];
tps = this.server.getTPS()[0];
this.cached_tps.put(true, tps);
}
return tps;
Expand Down

0 comments on commit 0882ec3

Please sign in to comment.