From d326527d75b6d6b3f43c8e4fb415f2db7e937f72 Mon Sep 17 00:00:00 2001 From: Patrikk Date: Sat, 20 Aug 2016 21:06:27 +0200 Subject: [PATCH 1/2] Fix Junction Box permission issue Users without `allowclientsideworldedit` permission couldn't hammer and change direction of Junction Box. Code tested and functional. (idk if I did it right tho lol) --- TShockAPI/GetDataHandlers.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/TShockAPI/GetDataHandlers.cs b/TShockAPI/GetDataHandlers.cs index 9ff3b562..27cee024 100755 --- a/TShockAPI/GetDataHandlers.cs +++ b/TShockAPI/GetDataHandlers.cs @@ -1741,6 +1741,10 @@ namespace TShockAPI continue; } + // Junction Box + if (tile.type == TileID.WirePipe) + return false; + // Orientable tiles if (tile.type == newtile.Type && orientableTiles.Contains(tile.type)) { From 38dea6215e0a3ad40eca44335e6fc5d5034a8858 Mon Sep 17 00:00:00 2001 From: Patrikk Date: Fri, 2 Sep 2016 18:45:37 +0200 Subject: [PATCH 2/2] Update Changelog. --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index eb2270dd..dbee3ba6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ This is the rolling changelog for TShock for Terraria. Use past tense when addin * The Drill Containment Unit breaks blocks properly now (@ProfessorXZ) * Fixed Expert mode coin duplication (@ProfessorXZ) * Players are no longer able to place liquids using LoadNetModule packet (@ProfessorXZ) +* Fixed a bug where players couldn't hammer a Junction Box without "allowclientsideworldedit" permission (@Patrikkk) ## TShock 4.3.17