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)
This commit is contained in:
Patrikk 2016-08-20 21:06:27 +02:00
parent 66f5f9f540
commit d326527d75

View file

@ -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))
{