Merge pull request #1274 from Patrikkk/fix-junctionbox

Fix Junction Box permission issue
This commit is contained in:
Rodrigo 2016-09-02 21:54:10 +01:00 committed by GitHub
commit 60b7e7d574
2 changed files with 5 additions and 0 deletions

View file

@ -21,6 +21,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

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