Skip to content

Commit

Permalink
fix: revert locale and notify changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mafewtm committed Apr 2, 2024
1 parent 32516b5 commit de45bbe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@
},
"info": {
"minutes": "minutes",
"seconds": "seconds..",
"stress_gain": "Stress gained",
"stress_relief": "Stress relieved"
"seconds": "seconds.."
}
}
4 changes: 2 additions & 2 deletions server/consumables.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ local function relieveStress(source, min, max)

playerState:set("stress", newStress, true)
if amount < 0 then
exports.qbx_core:Notify(source, locale('stress_gain'), 'inform', 2500, nil, nil, {'#141517', '#ffffff'}, 'brain', '#C53030')
exports.qbx_core:Notify(source, stress_gain, 'inform', 2500, nil, nil, {'#141517', '#ffffff'}, 'brain', '#C53030')
else
exports.qbx_core:Notify(source, locale('stress_relief'), 'inform', 2500, nil, nil, {'#141517', '#ffffff'}, 'brain', '#0F52BA')
exports.qbx_core:Notify(source, stress_relief, 'inform', 2500, nil, nil, {'#141517', '#ffffff'}, 'brain', '#0F52BA')
end
end

Expand Down

0 comments on commit de45bbe

Please sign in to comment.