Skip to content

Commit

Permalink
fix: fix money set event
Browse files Browse the repository at this point in the history
  • Loading branch information
ShrBox committed Jan 4, 2025
1 parent 5702ede commit 6101f7a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions src/API.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#include "Event.h"
#include "LLMoney.h"
#include "LegacyMoney.h"
#include "ll/api/io/Logger.h"
#include "ll/api/service/PlayerInfo.h"
#include "sqlitecpp/SQLiteCpp.h"
#include <memory>
Expand Down Expand Up @@ -204,7 +203,7 @@ bool LLMoney_Set(std::string xuid, long long money) {

isRealTrans = false;
bool res = LLMoney_Trans(from, to, diff, "set to " + std::to_string(money));
if (res) CallAfterEvent(LLMoneyEvent::Reduce, {}, xuid, money);
if (res) CallAfterEvent(LLMoneyEvent::Set, {}, xuid, money);
return res;
}

Expand Down
6 changes: 3 additions & 3 deletions tooth.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"format_version": 2,
"tooth": "github.com/LiteLDev/LegacyMoney",
"version": "0.9.0-rc.1",
"version": "0.9.0-rc.2",
"info": {
"name": "LegacyMoney",
"description": "LLMoney, but adapted to LeviLamina",
Expand All @@ -13,9 +13,9 @@
"economy"
]
},
"asset_url": "https://github.com/LiteLDev/LegacyMoney/releases/download/v0.9.0-rc.1/LegacyMoney-windows-x64.zip",
"asset_url": "https://github.com/LiteLDev/LegacyMoney/releases/download/v0.9.0-rc.2/LegacyMoney-windows-x64.zip",
"prerequisites": {
"github.com/LiteLDev/LeviLamina": "1.0.x"
"github.com/LiteLDev/LeviLamina": "1.0.0-rc.1"
},
"files": {
"place": [
Expand Down

0 comments on commit 6101f7a

Please sign in to comment.