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