Skip to content

Commit

Permalink
Fix wrong config getter
Browse files Browse the repository at this point in the history
  • Loading branch information
insthync committed May 7, 2021
1 parent c8dd451 commit dd9c472
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions configs/config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ play_public_key=
# Request action by request query
use_request_query_action=FALSE

# Raid boss rewarding delay (Default is 300 seconds = 5 minutes)
raid_boss_rewarding_delay=300
# Raid boss rewarding delay (Default is 300 seconds or 5 minutes)
raid_boss_rewarding_delay=300
2 changes: 1 addition & 1 deletion functions/RaidBoss.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function RaidEventRewarding()
{
$gameData = \Base::instance()->get('GameData');
$currentTime = time();
$endTime = $currentTime - $f3->get('raid_boss_rewarding_delay');
$endTime = $currentTime - \Base::instance()->get('raid_boss_rewarding_delay');
$raidEventDb = new RaidEvent();
$raidEvents = $raidEventDb->find(array(
'endTime <= ? AND rewarded = 0',
Expand Down

0 comments on commit dd9c472

Please sign in to comment.