From 6a0306596da35f9618d4c644c91d64ce1bbfa571 Mon Sep 17 00:00:00 2001 From: k0rd Date: Mon, 30 Sep 2013 20:43:17 -0400 Subject: [PATCH] changed boundry of tp --- TShockAPI/TSPlayer.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/TShockAPI/TSPlayer.cs b/TShockAPI/TSPlayer.cs index 9701bf93..930cf5f0 100644 --- a/TShockAPI/TSPlayer.cs +++ b/TShockAPI/TSPlayer.cs @@ -512,21 +512,21 @@ namespace TShockAPI public bool Teleport(float x, float y, byte style = 1) { - if (x > Main.rightWorld - 500) + if (x > Main.rightWorld - 992) { - x = Main.rightWorld - 500; + x = Main.rightWorld - 992; } - if (x < 500) + if (x < 992) { - x = 500; + x = 992; } - if (y > Main.bottomWorld - 500) + if (y > Main.bottomWorld - 992) { - y = Main.bottomWorld - 500; + y = Main.bottomWorld - 992; } - if (y < 500) + if (y < 992) { - y = 500; + y = 992; } TPlayer.Teleport(new Vector2(x, y), style);