Fix rope placement range checks. Fixes #1236
This commit is contained in:
parent
6b0b67f1ca
commit
64f177e68f
2 changed files with 6 additions and 5 deletions
|
|
@ -16,6 +16,7 @@ This is the rolling changelog for TShock for Terraria. Use past tense when addin
|
|||
* Fixed an issue allowing clients to teleport NPCs to arbitrary locations (@ProfessorXZ)
|
||||
* Fixed a bug where players would get teleported to their previous location after dismounting the Unicorn Mount (@ProfessorXZ)
|
||||
* Players can no longer quick stack items into region protected chests (@ProfessorXZ)
|
||||
* Rope placement is no longer blocked by range checks (@ProfessorXZ)
|
||||
|
||||
## TShock 4.3.17
|
||||
|
||||
|
|
|
|||
|
|
@ -2021,7 +2021,7 @@ namespace TShockAPI
|
|||
}
|
||||
else if (action == EditAction.KillWall)
|
||||
{
|
||||
// If they aren't selecting an hammer, they could be hacking.
|
||||
// If they aren't selecting a hammer, they could be hacking.
|
||||
if (selectedItem.hammer == 0 && !ItemID.Sets.Explosives[selectedItem.netID] && args.Player.RecentFuse == 0 && selectedItem.createWall == 0)
|
||||
{
|
||||
|
||||
|
|
@ -2144,10 +2144,10 @@ namespace TShockAPI
|
|||
|
||||
// Ignore rope placement range
|
||||
if ((editData != TileID.Rope
|
||||
|| editData != TileID.SilkRope
|
||||
|| editData != TileID.VineRope
|
||||
|| editData != TileID.WebRope
|
||||
|| action != EditAction.PlaceTile)
|
||||
&& editData != TileID.SilkRope
|
||||
&& editData != TileID.VineRope
|
||||
&& editData != TileID.WebRope
|
||||
&& action == EditAction.PlaceTile)
|
||||
&& TShock.CheckRangePermission(args.Player, tileX, tileY))
|
||||
{
|
||||
args.Player.SendTileSquare(tileX, tileY, 4);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue