From a65eb1667d8eab294281adeab7c3a63e10de65b1 Mon Sep 17 00:00:00 2001 From: ProfessorXZ Date: Tue, 9 Aug 2016 13:39:51 +0200 Subject: [PATCH] The DCU now breaks tiles properly. Fixes #1155 --- CHANGELOG.md | 1 + TShockAPI/GetDataHandlers.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4cc32b53..222991f4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ This is the rolling changelog for TShock for Terraria. Use past tense when addin * Fixed a bug where players would get teleported to their previous location after dismounting the Unicorn Mount (@ProfessorXZ) * Players can no longer quick stack items into region protected chests (@ProfessorXZ) * Rope placement is no longer blocked by range checks (@ProfessorXZ) +* The Drill Containment Unit breaks blocks properly now (@ProfessorXZ) ## TShock 4.3.17 diff --git a/TShockAPI/GetDataHandlers.cs b/TShockAPI/GetDataHandlers.cs index a1904eac..c8d37d33 100755 --- a/TShockAPI/GetDataHandlers.cs +++ b/TShockAPI/GetDataHandlers.cs @@ -2013,7 +2013,7 @@ namespace TShockAPI return true; } // If the tile is a pickaxe tile and they aren't selecting a pickaxe, they're hacking. - else if ((!Main.tileAxe[tile.type] && !Main.tileHammer[tile.type]) && tile.wall == 0 && (selectedItem.pick == 0 && !ItemID.Sets.Explosives[selectedItem.netID] && args.Player.RecentFuse == 0)) + else if ((!Main.tileAxe[tile.type] && !Main.tileHammer[tile.type]) && tile.wall == 0 && ((args.TPlayer.mount.Type != 8 && selectedItem.pick == 0) && !ItemID.Sets.Explosives[selectedItem.netID] && args.Player.RecentFuse == 0)) { args.Player.SendTileSquare(tileX, tileY, 4); return true;