Fixed UI issues caused by setting wind speed to high values
This commit is contained in:
parent
4dca73a6cc
commit
7376ad8b0e
2 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue