add missing return stats
This commit is contained in:
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "dayz-armbands",
|
"name": "dayz-armbands",
|
||||||
"version": "6.7.1",
|
"version": "6.7.2",
|
||||||
"description": "A General Purpose Discord Bot for DayZ Servers.",
|
"description": "A General Purpose Discord Bot for DayZ Servers.",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"nodemonConfig": {
|
"nodemonConfig": {
|
||||||
|
|||||||
+1
-1
@@ -101,7 +101,7 @@ module.exports = {
|
|||||||
if (playerStatIndex == -1) stats.push(playerStat);
|
if (playerStatIndex == -1) stats.push(playerStat);
|
||||||
else stats[playerStatIndex] = playerStat;
|
else stats[playerStatIndex] = playerStat;
|
||||||
|
|
||||||
if (line.includes('hit by') || line.includes('killed by')) return; // prevent additional information from being fed to Alarms & UAVs
|
if (line.includes('hit by') || line.includes('killed by')) return stats; // prevent additional information from being fed to Alarms & UAVs
|
||||||
|
|
||||||
HandleAlarmsAndUAVs(client, guildId, {
|
HandleAlarmsAndUAVs(client, guildId, {
|
||||||
time: info.time,
|
time: info.time,
|
||||||
|
|||||||
Reference in new issue
Block a user