fix/logsHandler weapon undefined error

This commit is contained in:
SowinskiBraeden committed 2023-11-01 14:28:14 -07:00
1 parent 62c3243f10
commit bb05381fcc
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "dayzr-bot",
"version": "12.1.1",
"version": "12.1.2",
"description": "A General Purpose Discord Bot for DayZ Nitrado Servers.",
"main": "index.js",
"nodemonConfig": {
+1 -1
View File
@@ -189,7 +189,7 @@ module.exports = {
attackerStat.shotsLanded++;
attackerStat.shotsLandedPerBodyPart[info.bodyPart]++;
attackerStat.weaponStats[info.weapon].shotsLanded++;
attackerStat.weaponStats[info,weapon].shotsLandedPerBodyPart[info.bodyPart]++;
attackerStat.weaponStats[info.weapon].shotsLandedPerBodyPart[info.bodyPart]++;
}
await UpdatePlayer(client, playerStat);