From 6a1e52394afb0f5ec8c399a00987df2a2c4d2331 Mon Sep 17 00:00:00 2001 From: k0rd Date: Wed, 25 Jan 2012 23:28:35 -0500 Subject: [PATCH] Properly update position for hacky noclip detection and teleportation methods. --- TShockAPI/TSPlayer.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TShockAPI/TSPlayer.cs b/TShockAPI/TSPlayer.cs index 4fc03df4..ce1f3261 100644 --- a/TShockAPI/TSPlayer.cs +++ b/TShockAPI/TSPlayer.cs @@ -268,8 +268,8 @@ namespace TShockAPI SendWorldInfo(Main.spawnTileX, Main.spawnTileY, false); - TPlayer.position.X = tilex * 16; - TPlayer.position.Y = tiley * 16; + TPlayer.position.X = (float)(tilex * 16 + 8 - TPlayer.width /2); + TPlayer.position.Y = (float)(tiley * 16 - TPlayer.height); return true; }