Shank was dividing the tilex and tiley by 16
This commit is contained in:
parent
9deb1e9a44
commit
114f5ff34b
1 changed files with 2 additions and 2 deletions
|
|
@ -211,8 +211,8 @@ namespace TShockAPI
|
|||
{
|
||||
int plyX = Math.Abs((int)Main.player[e.Msg.whoAmI].position.X / 16);
|
||||
int plyY = Math.Abs((int)Main.player[e.Msg.whoAmI].position.Y / 16);
|
||||
int tileX = Math.Abs(x / 16);
|
||||
int tileY = Math.Abs(y / 16);
|
||||
int tileX = Math.Abs(x);
|
||||
int tileY = Math.Abs(y);
|
||||
|
||||
if ((Math.Abs(plyX - tileX) > 6) || (Math.Abs(plyY - tileY) > 6))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue