mirror of
https://github.com/AsgardEternal/squad-js-map-vote.git
synced 2025-01-23 13:43:52 -06:00
fix rcon return
This commit is contained in:
parent
10de6482c1
commit
cdcf9d3215
@ -1171,7 +1171,7 @@ layer
|
||||
// this.verbose(1, 'Parsing layer', l)
|
||||
const gl = /((?<mod>[a-zA-Z0-9]+)_)?(?<level>[a-zA-Z0-9]+)_(?<gamemode>[a-zA-Z0-9]+)_(?<version>[a-zA-Z0-9]+)(_(?<team1>[a-zA-Z0-9]+)v(?<team2>[a-zA-Z0-9]+))?/.exec(l)?.groups
|
||||
// this.verbose(1, 'Parsed layer', gl)
|
||||
if (!gl || Object.keys(gl).length !== 3) return;
|
||||
if (!gl) return;
|
||||
|
||||
if (!gl.level) this.verbose(1, 'Empty level', gl)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user