Skip to content

Commit

Permalink
fix: fix #4
Browse files Browse the repository at this point in the history
  • Loading branch information
ShrBox committed May 25, 2024
1 parent 9535453 commit 9942cdf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
"type": "native",
"description": "LLMoney, but adapted to LeviLamina",
"author": "LiteLDev",
"version": "0.7.2"
"version": "0.7.3"
}
4 changes: 3 additions & 1 deletion src/API.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ bool LLMoney_Trans(std::string from, std::string to, long long val, std::string
}
if (!to.empty()) {
auto tmoney = LLMoney_Get(to);
if (!from.empty()) {
if (from.empty()) {
tmoney += val
} else {
tmoney += val - val * Settings::pay_tax;
}
if (tmoney < 0) {
Expand Down
4 changes: 2 additions & 2 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.7.2",
"version": "0.7.3",
"info": {
"name": "LegacyMoney",
"description": "LLMoney, but adapted to LeviLamina",
Expand All @@ -13,7 +13,7 @@
"economy"
]
},
"asset_url": "https://github.com/LiteLDev/LegacyMoney/releases/download/v0.7.2/LegacyMoney-windows-x64.zip",
"asset_url": "https://github.com/LiteLDev/LegacyMoney/releases/download/v0.7.3/LegacyMoney-windows-x64.zip",
"prerequisites": {
"github.com/LiteLDev/LeviLamina": "0.12.x"
},
Expand Down

0 comments on commit 9942cdf

Please sign in to comment.