From ad83c393002892ed864604c43a6a625e60d78765 Mon Sep 17 00:00:00 2001 From: Lucas Nicodemus Date: Sat, 23 Dec 2017 15:40:14 -0700 Subject: [PATCH] OnPaintWall now uses GetDataHandledEventArgs. --- TShockAPI/GetDataHandlers.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/TShockAPI/GetDataHandlers.cs b/TShockAPI/GetDataHandlers.cs index f1155b13..86076fad 100644 --- a/TShockAPI/GetDataHandlers.cs +++ b/TShockAPI/GetDataHandlers.cs @@ -2133,7 +2133,7 @@ namespace TShockAPI /// /// For use with a PaintWall event /// - public class PaintWallEventArgs : HandledEventArgs + public class PaintWallEventArgs : GetDataHandledEventArgs { /// /// X Location @@ -2153,13 +2153,15 @@ namespace TShockAPI /// public static HandlerList PaintWall = new HandlerList(); - private static bool OnPaintWall(Int32 x, Int32 y, byte t) + private static bool OnPaintWall(TSPlayer player, MemoryStream data, Int32 x, Int32 y, byte t) { if (PaintWall == null) return false; var args = new PaintWallEventArgs { + Player = player, + Data = data, X = x, Y = y, type = t @@ -2949,7 +2951,7 @@ namespace TShockAPI { return true; } - if (OnPaintWall(x, y, t)) + if (OnPaintWall(args.Player, args.Data, x, y, t)) { return true; }