From 0b1da29cf848b631b7993d35f333af7ddad57be1 Mon Sep 17 00:00:00 2001
From: tru321 <84877585+tru321@users.noreply.github.com>
Date: Wed, 1 Dec 2021 14:35:02 +0800
Subject: [PATCH] Update GetDataHandlers.cs
---
TShockAPI/GetDataHandlers.cs | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/TShockAPI/GetDataHandlers.cs b/TShockAPI/GetDataHandlers.cs
index a668cdef..bf0fb54e 100644
--- a/TShockAPI/GetDataHandlers.cs
+++ b/TShockAPI/GetDataHandlers.cs
@@ -1073,11 +1073,12 @@ namespace TShockAPI
public class NpcTalkEventArgs : GetDataHandledEventArgs
{
///
- /// Player Id
+ /// The Terraria ID of the player talking to the NPC
///
public byte PlayerId { get; set; }
+
///
- /// NPC Id player's talk to
+ /// The NPC ID of the NPC the player is talking to
///
public short NPCTalkTarget { get; set; }
}
@@ -3145,6 +3146,7 @@ namespace TShockAPI
if (OnNpcTalk(args.Player, args.Data, plr, npc))
return true;
+
//Rejecting player who trying to talk to a npc if player were disabled, mainly for unregistered and logged out players. Preventing smuggling or duplicating their items if player put it in a npc's item slot
if (args.Player.IsBeingDisabled())
{