From 36afa961a380a0d73761e7657dbeb3849700017e Mon Sep 17 00:00:00 2001 From: Skylar Sadlier Date: Mon, 9 Dec 2019 18:13:49 -0700 Subject: [PATCH] Fix for name field not working --- query-game-server.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/query-game-server.html b/query-game-server.html index a9cbedb..48c459a 100644 --- a/query-game-server.html +++ b/query-game-server.html @@ -13,11 +13,15 @@ outputs:1, icon: "icons/server.png", label: function() { + if(this.name){ + return this.name; + } + if(this.host) { return (this.server_type ? this.server_type : 'Query') + ': ' + this.host + (this.port ? ":" + this.port : ''); } - return this.name || 'Query Game Server'; + return 'Query Game Server'; } });