From d326527d75b6d6b3f43c8e4fb415f2db7e937f72 Mon Sep 17 00:00:00 2001 From: Patrikk Date: Sat, 20 Aug 2016 21:06:27 +0200 Subject: [PATCH] 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)) {