Merge pull request #1283 from ProfessorXZ/wind-fix
Fixed UI issues caused by setting wind speed to high values
This commit is contained in:
commit
d48300fe31
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)
|
* Explosives are no longer blocked by range checks (@ProfessorXZ)
|
||||||
* Players can no longer bypass tile checks by using the Tile packet (@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 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
|
## TShock 4.3.17
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3917,7 +3917,7 @@ namespace TShockAPI
|
||||||
}
|
}
|
||||||
|
|
||||||
int speed;
|
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!");
|
args.Player.SendErrorMessage("Invalid wind speed!");
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue