Skip to content

Commit

Permalink
Merge pull request #129 from Shuggaloaf/UserLatency
Browse files Browse the repository at this point in the history
User Latency Update (correction)
  • Loading branch information
saif-ellafi authored Jul 12, 2023
2 parents 9c2d260 + 8ec1095 commit 6bc6d42
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modules/component/players.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ export default class MinimalUIPlayers {
onChange: debouncedReload
});

// Ping Logger compatibility setting
if (game.modules.get('ping-logger')?.active) {
// User Latency (formerly Ping Logger) compatibility setting
if (game.modules.get('user-latency')?.active) {
game.settings.register('minimal-ui', 'playerShowPing', {
name: game.i18n.localize("MinimalUI.PlayersShowPingName"),
hint: game.i18n.localize("MinimalUI.PlayersShowPingHint"),
Expand Down Expand Up @@ -128,8 +128,8 @@ export default class MinimalUIPlayers {
}
let playerWidthPixel = parseInt(MinimalUIPlayers.cssPlayersHiddenWidth);

// Compatibility for Ping Logger module
if (game.modules.get('ping-logger')?.active) {
// Compatibility for User Latency (formerly Ping Logger) module
if (game.modules.get('user-latency')?.active) {
if (game.settings.get('minimal-ui', 'playerShowPing') === "showPing") {
// Increase width and height to display ping
rootStyle.setProperty('--playerpingdisplay', 'initial');
Expand Down

0 comments on commit 6bc6d42

Please sign in to comment.