浏览代码

修复跑酷同时完成会有多次提示的 Bug

LTCatt 6 年之前
父节点
当前提交
82229ec317
共有 1 个文件被更改,包括 1 次插入 和 1 次删除
  1. 1 1
      data/mini/functions/main/player_finished.mcfunction

+ 1 - 1
data/mini/functions/main/player_finished.mcfunction

@@ -4,7 +4,7 @@
 tag @s remove mini_running
 scoreboard players set $t_finish mem 0
 execute as @a[tag=!mini_running] run scoreboard players add $t_finish mem 1
-execute if score $t_alive mem matches ..3 run tellraw @a [{"selector": "@s","color":"green"}," 已成功! 第 ",{"score": {"name": "$t_finish","objective": "mem"}}," 名!"]
+execute if score $t_finish mem matches ..3 run tellraw @a [{"selector": "@s","color":"green"}," 已成功! 第 ",{"score": {"name": "$t_finish","objective": "mem"}}," 名!"]
 
 # 给已完成的玩家加分
 scoreboard players add @a[tag=!mini_running] mini_score 1