Skip to content

Commit 223a9cc

Browse files
committed
fixed renamed player data inherit error
1 parent 72a7004 commit 223a9cc

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

mcd_task/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def on_player_joined(server: PluginServerInterface, player: str, info: Info):
3737
player_tasks = []
3838
now_time = float(time.time())
3939
for t in GlobalVariables.task_manager.responsible_manager[player]:
40-
task = GlobalVariables.task_manager[t]
40+
task = GlobalVariables.task_manager[t].titles
4141
if not task.is_done and now_time > task.deadline != 0:
4242
player_tasks.append(task)
4343
if len(player_tasks) > 0:

mcd_task/command_actions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ def task_overview(source: CommandSource):
252252
if len(task_texts) >= GlobalVariables.config.overview_maximum_task_amount:
253253
break
254254
if task.title not in task_texts.keys():
255-
task_texts[task.full_path()] = RText('[!] ', RColor.gold).h(
255+
task_texts[task.titles] = RText('[!] ', RColor.gold).h(
256256
tr('has_a_high_priority', task.priority)
257257
) + title_text(task, display_full_path=True)
258258
task_text = RTextBase.join('\n', task_texts.values())

mcdreforged.plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"id": "mcd_task",
3-
"version": "2.3.1+build.63",
3+
"version": "2.3.2+build.64",
44
"name": "Task",
55
"description": {
66
"en_us": "A plugin to show tasks of project in progress",

0 commit comments

Comments
 (0)