Add character check when applying bonus

This commit is contained in:
2024-12-21 07:39:05 +09:00
committed by GitHub
parent cf6a584508
commit 076d42081d

View File

@@ -388,6 +388,8 @@ end)
Event.on_nth_tick(config.player_special_bonus_rate, function(_)
for _, player in pairs(game.connected_players) do
if player.character then
apply_periodic_bonus(player)
end
end
end)