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:
parent
66f5f9f540
commit
d326527d75
1 changed files with 4 additions and 0 deletions
|
|
@ -1741,6 +1741,10 @@ namespace TShockAPI
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Junction Box
|
||||||
|
if (tile.type == TileID.WirePipe)
|
||||||
|
return false;
|
||||||
|
|
||||||
// Orientable tiles
|
// Orientable tiles
|
||||||
if (tile.type == newtile.Type && orientableTiles.Contains(tile.type))
|
if (tile.type == newtile.Type && orientableTiles.Contains(tile.type))
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue