Fix wall placement mechanic (thanks @ijwu, @whitexz)

Fixes #946
This commit is contained in:
Lucas Nicodemus 2015-07-10 00:03:26 -06:00
parent ed9e636c61
commit fc4ee7b547

View file

@ -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;
}