Implement suggestion for fixing forceupdate flag
This commit is contained in:
parent
36b5d4e9f7
commit
b4789607f6
2 changed files with 8 additions and 0 deletions
|
|
@ -23,6 +23,7 @@ This is the rolling changelog for TShock for Terraria. Use past tense when addin
|
||||||
* Added a new permission: `tshock.world.growevil` to prevent players to grow evil biome trees, these trees spawn with evil biome blocks below them.
|
* Added a new permission: `tshock.world.growevil` to prevent players to grow evil biome trees, these trees spawn with evil biome blocks below them.
|
||||||
* Introduced `/wallow` to disable or enable recieving whispers from other players. (@Nova4334)
|
* Introduced `/wallow` to disable or enable recieving whispers from other players. (@Nova4334)
|
||||||
* Removed stoned & webbed from disabled status (@QuiCM)
|
* Removed stoned & webbed from disabled status (@QuiCM)
|
||||||
|
* Fix -forceupdate flag not forcing updates (@Quake)
|
||||||
|
|
||||||
## TShock 4.4.0 (Pre-release 15)
|
## TShock 4.4.0 (Pre-release 15)
|
||||||
* Overhauled Bans system. Bans are now based on 'identifiers'. (@QuiCM)
|
* Overhauled Bans system. Bans are now based on 'identifiers'. (@QuiCM)
|
||||||
|
|
|
||||||
|
|
@ -890,6 +890,13 @@ namespace TShockAPI
|
||||||
/// <param name="args">args - EventArgs args</param>
|
/// <param name="args">args - EventArgs args</param>
|
||||||
private void OnUpdate(EventArgs args)
|
private void OnUpdate(EventArgs args)
|
||||||
{
|
{
|
||||||
|
// This forces Terraria to actually continue to update
|
||||||
|
// even if there are no clients connected
|
||||||
|
if (ServerApi.ForceUpdate)
|
||||||
|
{
|
||||||
|
Netplay.HasClients = true;
|
||||||
|
}
|
||||||
|
|
||||||
if (Backups.IsBackupTime)
|
if (Backups.IsBackupTime)
|
||||||
Backups.Backup();
|
Backups.Backup();
|
||||||
//call these every second, not every update
|
//call these every second, not every update
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue