Merge pull request #1274 from Patrikkk/fix-junctionbox
Fix Junction Box permission issue
This commit is contained in:
commit
60b7e7d574
2 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue