mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-08-29 16:18:35 +01:00
Skip calling handle_ambience() if there is no client assigned
Fixes potential CPU usage issue for EVERY single mob having that call
This commit is contained in:
@@ -45,8 +45,8 @@
|
||||
//Check if we're on fire
|
||||
handle_fire()
|
||||
|
||||
// Handle re-running ambience to mobs if they've remained in an area.
|
||||
handle_ambience()
|
||||
if(client) // Handle re-running ambience to mobs if they've remained in an area, AND have an active client assigned to them.
|
||||
handle_ambience()
|
||||
|
||||
//stuff in the stomach
|
||||
handle_stomach()
|
||||
|
||||
Reference in New Issue
Block a user