fix snake rope thingy
This commit is contained in:
parent
35a3125891
commit
013ef4ce98
1 changed files with 3 additions and 2 deletions
|
|
@ -467,7 +467,7 @@ namespace TShockAPI
|
||||||
|
|
||||||
if (!args.Player.IsInRange(tileX, tileY))
|
if (!args.Player.IsInRange(tileX, tileY))
|
||||||
{
|
{
|
||||||
if (action == EditAction.PlaceTile && (editData == TileID.Rope || editData == TileID.SilkRope || editData == TileID.VineRope || editData == TileID.WebRope))
|
if (action == EditAction.PlaceTile && (editData == TileID.Rope || editData == TileID.SilkRope || editData == TileID.VineRope || editData == TileID.WebRope || editData == TileID.MysticSnakeRope))
|
||||||
{
|
{
|
||||||
args.Handled = false;
|
args.Handled = false;
|
||||||
return;
|
return;
|
||||||
|
|
@ -1644,7 +1644,8 @@ namespace TShockAPI
|
||||||
if ((type != TileID.Rope
|
if ((type != TileID.Rope
|
||||||
|| type != TileID.SilkRope
|
|| type != TileID.SilkRope
|
||||||
|| type != TileID.VineRope
|
|| type != TileID.VineRope
|
||||||
|| type != TileID.WebRope)
|
|| type != TileID.WebRope
|
||||||
|
|| type != TileID.MysticSnakeRope)
|
||||||
&& !args.Player.IsInRange(x, y))
|
&& !args.Player.IsInRange(x, y))
|
||||||
{
|
{
|
||||||
TShock.Log.ConsoleDebug("Bouncer / OnPlaceObject rejected range checks from {0}", args.Player.Name);
|
TShock.Log.ConsoleDebug("Bouncer / OnPlaceObject rejected range checks from {0}", args.Player.Name);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue