Skip to content
This repository was archived by the owner on Nov 7, 2023. It is now read-only.

Commit a899868

Browse files
committed
feat(Terraria 1.4.0.5): update to support Terraria 1.4.0.5 on TShock 4.4.0-pre12
1 parent 64d3b66 commit a899868

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Implementation/UserInteractionHandler.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3021,7 +3021,7 @@ public virtual bool HandlePlayerSpawn(TSPlayer player, DPoint spawnTileLocation)
30213021
player.sY = spawnTileLocation.X;
30223022
}
30233023

3024-
player.TPlayer.Spawn();
3024+
player.TPlayer.Spawn(PlayerSpawnContext.ReviveFromDeath);
30253025
NetMessage.SendData(12, -1, player.Index, NetworkText.Empty, player.Index);
30263026
player.Dead = false;
30273027

@@ -3084,7 +3084,7 @@ private Item PutItemInNearbyChest(TSPlayer player, Item itemToStore, Vector2 pos
30843084
private bool TryToStoreItemInNearbyChest(TSPlayer player, Vector2 playerPosition, Item itemToStore, IChest chest) {
30853085
float quickStackRange = this.Config.QuickStackNearbyRange * 16;
30863086

3087-
if (Chest.isLocked(chest.Location.X, chest.Location.Y))
3087+
if (Chest.IsLocked(chest.Location.X, chest.Location.Y))
30883088
return false;
30893089

30903090
Vector2 vector2 = new Vector2((chest.Location.X * 16 + 16), (chest.Location.Y * 16 + 16));

0 commit comments

Comments
 (0)