From ef0e83d5cc30691678372826727ff625be777180 Mon Sep 17 00:00:00 2001 From: Lucas Nicodemus Date: Mon, 24 May 2021 02:32:10 -0700 Subject: [PATCH] TSAPI: Add OnSendNetData hook (thanks @Stealownz!) --- CHANGELOG.md | 1 + TerrariaServerAPI | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f6f94ff6..fc6c9c8d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ This is the rolling changelog for TShock for Terraria. Use past tense when addin * Fixed ridiculous typo in `GetDataHandlers` which caused TShock to read the wrong field in the packet for `usingBiomeTorches`. (@hakusaro, @Arthri) * Fixed torchgod settings to include whether or not torchgod has been fought by the player before and respect `usingBiomeTorches` setting. (@Quinci135) * Fixed /worldmode not synchronising data to players after updating the world state (@bartico6, @Arthri) +* Added `OnNetSendData` hook to TSAPI, which enables developers to hook `SendData` to intercept traffic being sent from the server to clients. (@Stealownz) ## TShock 4.5.3 * Added permissions for using Teleportation Potions, Magic Conch, and Demon Conch. (@drunderscore) diff --git a/TerrariaServerAPI b/TerrariaServerAPI index 27b27553..4ac95288 160000 --- a/TerrariaServerAPI +++ b/TerrariaServerAPI @@ -1 +1 @@ -Subproject commit 27b275538bffb1f0fcb8b9c1830bc715373f5da1 +Subproject commit 4ac9528825390ac3a15f096b248fcda33f5d210f