Fix wind command (#1879)

* Fix wind command
This commit is contained in:
Axeel 2020-05-24 13:39:50 +08:00 committed by GitHub
parent 8d277edf04
commit 535c9a2a7e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -4,6 +4,7 @@ This is the rolling changelog for TShock for Terraria. Use past tense when addin
## Upcoming release
* Update for OTAPI 2.0.0.36 and Terraria 1.4.0.4. (@hakusaro, @Patrikkk, @DeathCradle)
* Fixed /wind command. (@AxeelAnder)
* Fixed NPC buff bouncer. (@AxeelAnder)
## TShock 4.4.0 (Pre-release 7 (Entangled))

View file

@ -4264,7 +4264,7 @@ namespace TShockAPI
}
Main.windSpeedCurrent = speed;
Main.windSpeedTarget = 0f;
Main.windSpeedTarget = speed;
TSPlayer.All.SendData(PacketTypes.WorldInfo);
TSPlayer.All.SendInfoMessage("{0} changed the wind speed to {1}.", args.Player.Name, speed);
}