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

Commit

Permalink
feat(Terraria 1.4.0.5): update to support Terraria 1.4.0.5 on TShock …
Browse files Browse the repository at this point in the history
…4.4.0-pre12
  • Loading branch information
Stealownz committed Mar 22, 2021
1 parent 64d3b66 commit a899868
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Implementation/UserInteractionHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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));
Expand Down

0 comments on commit a899868

Please sign in to comment.