Skip to content

Commit

Permalink
fixed renamed player data inherit error
Browse files Browse the repository at this point in the history
  • Loading branch information
Ra1ny-Yuki committed Jul 20, 2022
1 parent 72a7004 commit 223a9cc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mcd_task/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def on_player_joined(server: PluginServerInterface, player: str, info: Info):
player_tasks = []
now_time = float(time.time())
for t in GlobalVariables.task_manager.responsible_manager[player]:
task = GlobalVariables.task_manager[t]
task = GlobalVariables.task_manager[t].titles
if not task.is_done and now_time > task.deadline != 0:
player_tasks.append(task)
if len(player_tasks) > 0:
Expand Down
2 changes: 1 addition & 1 deletion mcd_task/command_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def task_overview(source: CommandSource):
if len(task_texts) >= GlobalVariables.config.overview_maximum_task_amount:
break
if task.title not in task_texts.keys():
task_texts[task.full_path()] = RText('[!] ', RColor.gold).h(
task_texts[task.titles] = RText('[!] ', RColor.gold).h(
tr('has_a_high_priority', task.priority)
) + title_text(task, display_full_path=True)
task_text = RTextBase.join('\n', task_texts.values())
Expand Down
2 changes: 1 addition & 1 deletion mcdreforged.plugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id": "mcd_task",
"version": "2.3.1+build.63",
"version": "2.3.2+build.64",
"name": "Task",
"description": {
"en_us": "A plugin to show tasks of project in progress",
Expand Down

0 comments on commit 223a9cc

Please sign in to comment.