Skip to content

Commit

Permalink
fix varying data format in itemClear
Browse files Browse the repository at this point in the history
  • Loading branch information
kaduvert authored Jun 18, 2024
1 parent 652b831 commit 0cfa134
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/basic/mysteryMod.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ module.exports = function load(bot, ns) {
bot.on('misc:mysteryMod->countdown_create', (data) => {
if (data.name === 'ClearLag') {
if (data.unit === 'SECONDS') {
ns.itemClear.nextAt = Date.now() + (data.until * 1000)
ns.itemClear.nextAt = new Date(Date.now() + (data.until * 1000))
}
} else {
console.log(`DEBUG: event mysteryMod.events->countdown_create triggered with unusual data:\n${data}`)
Expand Down

0 comments on commit 0cfa134

Please sign in to comment.