diff --git a/CHANGELOG.md b/CHANGELOG.md index e31dac52..38724be7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,6 +24,7 @@ This is the rolling changelog for TShock for Terraria. Use past tense when addin * Explosives are no longer blocked by range checks (@ProfessorXZ) * Players can no longer bypass tile checks by using the Tile packet (@ProfessorXZ) * Fixed a bug where players couldn't hammer a Junction Box without "allowclientsideworldedit" permission (@Patrikkk) +* Fixed the client's UI not being draw when setting wind speed to abnormal values (@ProfessorXZ) ## TShock 4.3.17 diff --git a/TShockAPI/Commands.cs b/TShockAPI/Commands.cs index 4a455b73..53e0bc64 100755 --- a/TShockAPI/Commands.cs +++ b/TShockAPI/Commands.cs @@ -3917,7 +3917,7 @@ namespace TShockAPI } int speed; - if (!int.TryParse(args.Parameters[0], out speed)) + if (!int.TryParse(args.Parameters[0], out speed) || speed * 100 < 0) { args.Player.SendErrorMessage("Invalid wind speed!"); return;