From a899868a96901a95430d6bedc84fc450ddec5a76 Mon Sep 17 00:00:00 2001 From: Stealownz Date: Mon, 22 Mar 2021 22:28:41 +0800 Subject: [PATCH] feat(Terraria 1.4.0.5): update to support Terraria 1.4.0.5 on TShock 4.4.0-pre12 --- Implementation/UserInteractionHandler.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Implementation/UserInteractionHandler.cs b/Implementation/UserInteractionHandler.cs index 9808a98..38f3fa2 100644 --- a/Implementation/UserInteractionHandler.cs +++ b/Implementation/UserInteractionHandler.cs @@ -3021,7 +3021,7 @@ public virtual bool HandlePlayerSpawn(TSPlayer player, DPoint spawnTileLocation) player.sY = spawnTileLocation.X; } - player.TPlayer.Spawn(); + player.TPlayer.Spawn(PlayerSpawnContext.ReviveFromDeath); NetMessage.SendData(12, -1, player.Index, NetworkText.Empty, player.Index); player.Dead = false; @@ -3084,7 +3084,7 @@ private Item PutItemInNearbyChest(TSPlayer player, Item itemToStore, Vector2 pos private bool TryToStoreItemInNearbyChest(TSPlayer player, Vector2 playerPosition, Item itemToStore, IChest chest) { float quickStackRange = this.Config.QuickStackNearbyRange * 16; - if (Chest.isLocked(chest.Location.X, chest.Location.Y)) + if (Chest.IsLocked(chest.Location.X, chest.Location.Y)) return false; Vector2 vector2 = new Vector2((chest.Location.X * 16 + 16), (chest.Location.Y * 16 + 16));