From fc4ee7b5477ea493780687c1ebf0ed7e706f0f4a Mon Sep 17 00:00:00 2001 From: Lucas Nicodemus Date: Fri, 10 Jul 2015 00:03:26 -0600 Subject: [PATCH] Fix wall placement mechanic (thanks @ijwu, @whitexz) Fixes #946 --- TShockAPI/GetDataHandlers.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/TShockAPI/GetDataHandlers.cs b/TShockAPI/GetDataHandlers.cs index 45df55bc..75fcddfa 100755 --- a/TShockAPI/GetDataHandlers.cs +++ b/TShockAPI/GetDataHandlers.cs @@ -1944,9 +1944,10 @@ namespace TShockAPI } else if (action == EditAction.KillWall) { - // If they aren't selecting an hammer, they're hacking. - if (selectedItem.hammer == 0 && !ItemID.Sets.Explosives[selectedItem.netID] && args.Player.RecentFuse == 0) + // If they aren't selecting an hammer, they could be hacking. + if (selectedItem.hammer == 0 && !ItemID.Sets.Explosives[selectedItem.netID] && args.Player.RecentFuse == 0 && selectedItem.createWall == 0) { + args.Player.SendTileSquare(tileX, tileY, 1); return true; }