Skip to content

Commit b06ecbd

Browse files
author
尧杰 曾
committed
Fix bug: items given
1 parent 9369529 commit b06ecbd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

CDK/DatabaseManager.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,14 @@ public RedeemCDKResult RedeemCDK(UnturnedPlayer player, string CDK)
5252
else if (logdata == null && !cdkdata.Renew)
5353
{
5454

55-
if (cdkdata.Items != "0" && cdkdata.Amount == "0")
55+
if (cdkdata.Items != string.Empty && cdkdata.Amount == string.Empty)
5656
{
5757
foreach (string item in cdkdata.Items.Split(','))
5858
{
5959
player.GiveItem(Convert.ToUInt16(item), 1);
6060
}
6161
}
62-
else if (cdkdata.Items != "0" && cdkdata.Amount != "0")
62+
else if (cdkdata.Items != string.Empty && cdkdata.Amount != string.Empty)
6363
{
6464
foreach (string item in cdkdata.Items.Split(','))
6565
{

CDK/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@
3232
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
3333
//通过使用 "*",如下所示:
3434
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("3.2.0.6")]
36-
[assembly: AssemblyFileVersion("3.2.0.6")]
35+
[assembly: AssemblyVersion("3.2.0.7")]
36+
[assembly: AssemblyFileVersion("3.2.0.7")]

0 commit comments

Comments
 (0)