Add WorldInfo broadcast in /worldmode

This commit is contained in:
quake1337 2021-05-24 10:40:05 +02:00
parent d06a6ed0c0
commit 5b9e1dc871
2 changed files with 2 additions and 0 deletions

View file

@ -15,6 +15,7 @@ This is the rolling changelog for TShock for Terraria. Use past tense when addin
## Upcoming changes
* Fixed ridiculous typo in `GetDataHandlers` which caused TShock to read the wrong field in the packet for `usingBiomeTorches`. (@hakusaro, @Arthri)
* Fixed torchgod settings to include whether or not torchgod has been fought by the player before and respect `usingBiomeTorches` setting. (@Quinci135)
* Fixed /worldmode not synchronising data to players after updating the world state (@bartico6, @Arthri)
## TShock 4.5.3
* Added permissions for using Teleportation Potions, Magic Conch, and Demon Conch. (@drunderscore)

View file

@ -2391,6 +2391,7 @@ namespace TShockAPI
Main.GameMode = mode;
args.Player.SendSuccessMessage("World mode set to {0}", _worldModes.Keys.ElementAt(mode));
TSPlayer.All.SendData(PacketTypes.WorldInfo);
}
private static void Hardmode(CommandArgs args)