Fix item dupe via /logout & NPC (#2495 issue)
This commit is contained in:
parent
b6d56422ff
commit
acb6a96245
2 changed files with 7 additions and 0 deletions
|
|
@ -14,6 +14,7 @@ This is the rolling changelog for TShock for Terraria. Use past tense when addin
|
||||||
|
|
||||||
## TShock 4.5.12
|
## TShock 4.5.12
|
||||||
* Fixed the ability to spawn Zenith projectile with non-original items. (@AgaSpace)
|
* Fixed the ability to spawn Zenith projectile with non-original items. (@AgaSpace)
|
||||||
|
* Fixed item dupe via /logout & NPC. (@Terrarxxn)
|
||||||
|
|
||||||
## TShock 4.5.11
|
## TShock 4.5.11
|
||||||
* Add the new allowed buff TentacleSpike to NPC buff cheat detection bouncer. (@sgkoishi)
|
* Add the new allowed buff TentacleSpike to NPC buff cheat detection bouncer. (@sgkoishi)
|
||||||
|
|
|
||||||
|
|
@ -911,6 +911,12 @@ namespace TShockAPI
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (args.Player.TPlayer.talkNPC != -1)
|
||||||
|
{
|
||||||
|
args.Player.SendErrorMessage("Please close NPC window for logging out.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
args.Player.Logout();
|
args.Player.Logout();
|
||||||
args.Player.SendSuccessMessage("You have been successfully logged out of your account.");
|
args.Player.SendSuccessMessage("You have been successfully logged out of your account.");
|
||||||
if (Main.ServerSideCharacter)
|
if (Main.ServerSideCharacter)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue