From 0c49106b9cd6b3ad8ed91028f08e4438d445fb1b Mon Sep 17 00:00:00 2001 From: White Date: Tue, 31 May 2016 11:40:13 +0930 Subject: [PATCH] Updated wire checks and added a check for Fake_newchest 1 and 2 --- TShockAPI/GetDataHandlers.cs | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/TShockAPI/GetDataHandlers.cs b/TShockAPI/GetDataHandlers.cs index 3bb6400c..7bda9440 100755 --- a/TShockAPI/GetDataHandlers.cs +++ b/TShockAPI/GetDataHandlers.cs @@ -2067,13 +2067,26 @@ namespace TShockAPI return true; } } + if (action == EditAction.PlaceTile && editData == TileID.FakeContainers) + { + if (selectedItem.type == ItemID.Fake_newchest1 + || selectedItem.type == ItemID.Fake_newchest2) + { + args.Player.SendTileSquare(tileX, tileY, 3); + return true; + } + } } else if (action == EditAction.PlaceWire || action == EditAction.PlaceWire2 || action == EditAction.PlaceWire3) { // If they aren't selecting a wrench, they're hacking. + // WireKite = The Grand Design if (selectedItem.type != ItemID.Wrench && selectedItem.type != ItemID.BlueWrench - && selectedItem.type != ItemID.GreenWrench) + && selectedItem.type != ItemID.GreenWrench + && selectedItem.type != ItemID.YellowWrench + && selectedItem.type != ItemID.MulticolorWrench + && selectedItem.type != ItemID.WireKite) { args.Player.SendTileSquare(tileX, tileY, 1); return true; @@ -2083,7 +2096,8 @@ namespace TShockAPI action == EditAction.KillWire2 || action == EditAction.KillWire3) { // If they aren't selecting the wire cutter, they're hacking. - if (selectedItem.type != ItemID.WireCutter) + if (selectedItem.type != ItemID.WireCutter + && selectedItem.type != ItemID.WireKite) { args.Player.SendTileSquare(tileX, tileY, 1); return true;