Skip to content

Commit

Permalink
Fix for buying items
Browse files Browse the repository at this point in the history
  • Loading branch information
Zamirathe committed May 27, 2015
1 parent 217a66d commit 1bdff41
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions UconomyBasicShop/Properties/AssemblyInfo.cs
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers // You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below: // by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")] // [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.2.2.1")] [assembly: AssemblyVersion("1.2.2.2")]
[assembly: AssemblyFileVersion("1.2.2.1")] [assembly: AssemblyFileVersion("1.2.2.2")]
2 changes: 1 addition & 1 deletion UconomyBasicShop/UconomyBasicShop.cs
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ public void Buy(RocketPlayer playerid, string[] components0)
RocketChat.Say(playerid, message); RocketChat.Say(playerid, message);
return; return;
} }
playerid.GiveItem(id, amttobuy, false); playerid.GiveItem(id, amttobuy);
newbal = Uconomy.Instance.Database.IncreaseBalance(playerid.CSteamID, (cost * -1)); newbal = Uconomy.Instance.Database.IncreaseBalance(playerid.CSteamID, (cost * -1));
message = UconomyBasicShop.Instance.Translate("item_buy_msg", new object[] {name, cost, Uconomy.Instance.Configuration.MoneyName, newbal, Uconomy.Instance.Configuration.MoneyName, amttobuy}); message = UconomyBasicShop.Instance.Translate("item_buy_msg", new object[] {name, cost, Uconomy.Instance.Configuration.MoneyName, newbal, Uconomy.Instance.Configuration.MoneyName, amttobuy});
if (UconomyBasicShop.Instance.OnShopBuy != null) if (UconomyBasicShop.Instance.OnShopBuy != null)
Expand Down

0 comments on commit 1bdff41

Please sign in to comment.