Use correct value to read usingBiomeTorches in GDH
This fixes a ridiculous typo in GetDataHandlers where we were setting the UsingBiomeTorches flag based on having unlocked biome torches, rather than actually being used. Thanks to @Arthri for the tip!
This commit is contained in:
parent
7dde56e6da
commit
6856c867dd
2 changed files with 2 additions and 1 deletions
|
|
@ -13,6 +13,7 @@ This is the rolling changelog for TShock for Terraria. Use past tense when addin
|
|||
* If there is no section called "Upcoming changes" below this line, please add one with `## Upcoming changes` as the first line, and then a bulleted item directly after with the first change.
|
||||
|
||||
## Upcoming changes
|
||||
* Fixed ridiculous typo in `GetDataHandlers` which caused TShock to read the wrong field in the packet for `usingBiomeTorches`. (@hakusaro, @Arthri)
|
||||
|
||||
## TShock 4.5.3
|
||||
* Added permissions for using Teleportation Potions, Magic Conch, and Demon Conch. (@drunderscore)
|
||||
|
|
|
|||
|
|
@ -2306,7 +2306,7 @@ namespace TShockAPI
|
|||
args.Player.TPlayer.hideMisc = hideMisc;
|
||||
args.Player.TPlayer.extraAccessory = extraSlot;
|
||||
args.Player.TPlayer.unlockedBiomeTorches = unlockedBiomeTorches;
|
||||
args.Player.TPlayer.UsingBiomeTorches = unlockedBiomeTorches;
|
||||
args.Player.TPlayer.UsingBiomeTorches = usingBiomeTorches;
|
||||
|
||||
NetMessage.SendData((int)PacketTypes.PlayerInfo, -1, args.Player.Index, NetworkText.FromLiteral(args.Player.Name), args.Player.Index);
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue