diff --git a/CHANGELOG.md b/CHANGELOG.md index 1e95cab2..434c7ab1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. * Introduced `/wallow` to disable or enable recieving whispers from other players. (@Nova4334) * Removed stoned & webbed from disabled status (@QuiCM) +* Fix -forceupdate flag not forcing updates (@Quake) ## TShock 4.4.0 (Pre-release 15) * Overhauled Bans system. Bans are now based on 'identifiers'. (@QuiCM) diff --git a/TShockAPI/TShock.cs b/TShockAPI/TShock.cs index 5f774f95..48fa7461 100644 --- a/TShockAPI/TShock.cs +++ b/TShockAPI/TShock.cs @@ -890,6 +890,13 @@ namespace TShockAPI /// args - 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) Backups.Backup(); //call these every second, not every update