mirror of
https://git.neolegacy.dev/neoStudiosLCE/neoLegacy.git
synced 2026-12-03 06:29:05 +01:00
fix: player ticks if game paused
before: player will tick if the game is paused allowing him to take damage from poison or lava. now: player will not tick anymore if game is paused, so will not take damage anymore
This commit is contained in:
1 parent
9c55f80368
commit
ed63aaf8c4
5 files changed
+8
-5
No files matched your search
@@ -183,7 +183,7 @@ void PlayerConnection::tick()
|
||||
// Ensure server-side player tick runs even when no move packet was received this tick.
|
||||
// Without this, environmental damage (drowning, fire, lava) is never applied to clients
|
||||
// that don't send frequent move packets.
|
||||
if (!didTick && player != nullptr)
|
||||
if (!didTick && player != nullptr && !server->IsServerPaused() && !app.IsAppPaused())
|
||||
{
|
||||
player->doTick(false);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user