mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-11-15 00:24:52 +09:00
Add character check when applying bonus
This commit is contained in:
1 parent
cf6a584508
commit
076d42081d
1 file changed
+3
-1
@@ -388,6 +388,8 @@ end)
|
||||
|
||||
Event.on_nth_tick(config.player_special_bonus_rate, function(_)
|
||||
for _, player in pairs(game.connected_players) do
|
||||
apply_periodic_bonus(player)
|
||||
if player.character then
|
||||
apply_periodic_bonus(player)
|
||||
end
|
||||
end
|
||||
end)
|
||||
Reference in new issue
Block a user