From 21b51c577c0fe3f12fd14d540c184ca1c82d9e01 Mon Sep 17 00:00:00 2001 From: Chris <2648373+QuiCM@users.noreply.github.com> Date: Tue, 2 Jun 2020 17:26:32 +0930 Subject: [PATCH] This one should use 'Read' instead of 'Load' as well --- TShockAPI/GetDataHandlers.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TShockAPI/GetDataHandlers.cs b/TShockAPI/GetDataHandlers.cs index a39c3aa6..a6c08a50 100644 --- a/TShockAPI/GetDataHandlers.cs +++ b/TShockAPI/GetDataHandlers.cs @@ -1967,7 +1967,7 @@ namespace TShockAPI /// public static HandlerList ReadNetModule = new HandlerList(); - private static bool OnLoadNetModule(TSPlayer player, MemoryStream data, NetModuleType moduleType) + private static bool OnReadNetModule(TSPlayer player, MemoryStream data, NetModuleType moduleType) { if (ReadNetModule == null) { @@ -3259,7 +3259,7 @@ namespace TShockAPI { short moduleId = args.Data.ReadInt16(); - if (OnLoadNetModule(args.Player, args.Data, (NetModuleType)moduleId)) + if (OnReadNetModule(args.Player, args.Data, (NetModuleType)moduleId)) { return true; }