diff --git a/TShockAPI/GetDataHandlers.cs b/TShockAPI/GetDataHandlers.cs
index 90de1c68..a7b0e0a0 100644
--- a/TShockAPI/GetDataHandlers.cs
+++ b/TShockAPI/GetDataHandlers.cs
@@ -682,7 +682,7 @@ namespace TShockAPI
}
/// The arguments to the PlaceObject hook.
- public class PlaceObjectEventArgs : HandledEventArgs
+ public class PlaceObjectEventArgs : GetDataHandledEventArgs
{
/// The calling Player.
public TSPlayer Player { get; set; }
@@ -718,7 +718,7 @@ namespace TShockAPI
/// The object's alternate data.
/// The direction of the object.
/// bool
- private static bool OnPlaceObject(TSPlayer player, short x, short y, short type, short style, byte alternate, bool direction)
+ private static bool OnPlaceObject(TSPlayer player, MemoryStream data, short x, short y, short type, short style, byte alternate, bool direction)
{
if (PlaceObject == null)
return false;
@@ -726,6 +726,7 @@ namespace TShockAPI
var args = new PlaceObjectEventArgs
{
Player = player,
+ Data = data,
X = x,
Y = y,
Type = type,
@@ -2091,7 +2092,7 @@ namespace TShockAPI
byte alternate = args.Data.ReadInt8();
bool direction = args.Data.ReadBoolean();
- if (OnPlaceObject(args.Player, x, y, type, style, alternate, direction))
+ if (OnPlaceObject(args.Player, args.Data, x, y, type, style, alternate, direction))
return true;
return false;