This one should use 'Read' instead of 'Load' as well

This commit is contained in:
Chris 2020-06-02 17:26:32 +09:30
parent c7a6d044f4
commit 21b51c577c

View file

@ -1967,7 +1967,7 @@ namespace TShockAPI
/// </summary> /// </summary>
public static HandlerList<ReadNetModuleEventArgs> ReadNetModule = new HandlerList<ReadNetModuleEventArgs>(); public static HandlerList<ReadNetModuleEventArgs> ReadNetModule = new HandlerList<ReadNetModuleEventArgs>();
private static bool OnLoadNetModule(TSPlayer player, MemoryStream data, NetModuleType moduleType) private static bool OnReadNetModule(TSPlayer player, MemoryStream data, NetModuleType moduleType)
{ {
if (ReadNetModule == null) if (ReadNetModule == null)
{ {
@ -3259,7 +3259,7 @@ namespace TShockAPI
{ {
short moduleId = args.Data.ReadInt16(); short moduleId = args.Data.ReadInt16();
if (OnLoadNetModule(args.Player, args.Data, (NetModuleType)moduleId)) if (OnReadNetModule(args.Player, args.Data, (NetModuleType)moduleId))
{ {
return true; return true;
} }