From f7ea4719683718188a2f7ec0e0b7c09793df01f8 Mon Sep 17 00:00:00 2001 From: James Puleo Date: Sun, 29 Jan 2023 20:47:19 -0500 Subject: [PATCH 1/2] Set the `GetDataHandledEventArgs.Player` property for pick sync handler --- TShockAPI/GetDataHandlers.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/TShockAPI/GetDataHandlers.cs b/TShockAPI/GetDataHandlers.cs index 9ce1a5a20..1ef2f4f8b 100644 --- a/TShockAPI/GetDataHandlers.cs +++ b/TShockAPI/GetDataHandlers.cs @@ -2248,6 +2248,7 @@ private static bool OnSyncTilePicking(TSPlayer player, MemoryStream data, byte p var args = new SyncTilePickingEventArgs { + Player = player, PlayerIndex = playerIndex, TileX = tileX, TileY = tileY, From 3f4dd7b4b50aae381ea0a720d6481d0f1e7ade57 Mon Sep 17 00:00:00 2001 From: James Puleo Date: Sun, 29 Jan 2023 20:52:37 -0500 Subject: [PATCH 2/2] Update `docs/changelog.md` --- docs/changelog.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/changelog.md b/docs/changelog.md index f43f96514..be96f88c8 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -105,6 +105,7 @@ Use past tense when adding new entries; sign your name off when you add or chang * Initialized achievements and the `AchievementManager` on the server. This ensures that players cannot cause exceptions to be thrown, chat messages are always logged, and allows achievement names to be localized in the console. Also added a test case for this. (@drunderscore) * Allowed multiple test cases to be in TShock's test suite. (@drunderscore) * Fixed unable to use Purification/Evil Powder in jungle. (@sgkoishi) +* Set the `GetDataHandledEventArgs.Player` property for the `SyncTilePicking` data handler. (@drunderscore) ## TShock 5.1.3 * Added support for Terraria 1.4.4.9 via OTAPI 3.1.20. (@SignatureBeef)