From 23991600b62e204cdbf838d48a2c127edb8fe694 Mon Sep 17 00:00:00 2001 From: ProfessorXZ Date: Mon, 18 Jul 2016 23:33:44 +0200 Subject: [PATCH] Fixes The Presserator not placing actuators --- TShockAPI/GetDataHandlers.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/TShockAPI/GetDataHandlers.cs b/TShockAPI/GetDataHandlers.cs index cd398d9c..23051601 100755 --- a/TShockAPI/GetDataHandlers.cs +++ b/TShockAPI/GetDataHandlers.cs @@ -2101,8 +2101,9 @@ namespace TShockAPI } else if (action == EditAction.PlaceActuator) { - // If they aren't selecting the actuator, they're hacking. - if (selectedItem.type != ItemID.Actuator) + // If they aren't selecting the actuator and don't have the Presserator equipped, they're hacking. + // ActuationAccessorry = The Presserator + if (selectedItem.type != ItemID.Actuator && !args.Player.Accessories.Any(accessory => accessory.type == ItemID.ActuationAccessory)) { args.Player.SendTileSquare(tileX, tileY, 1); return true;