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

@ -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);
}