Update code to use new API functions

This commit is contained in:
shamoanjac
2016-08-20 00:47:35 +02:00
parent a4f09c7d8e
commit 4d53e4cc40
2 changed files with 25 additions and 25 deletions

View File

@ -710,7 +710,7 @@ factions.faction_tick = function()
if faction:is_online() then
faction:increase_power(factions.power_per_tick)
end
if faction.last_logon > factions.maximum_faction_inactivity then
if faction.last_logon - now > factions.maximum_faction_inactivity then
faction:disband()
end
end