修复了乐音乐器的execute前缀缺失的问题

This commit is contained in:
EillesWan 2024-02-02 20:50:35 +08:00
parent 99a7564648
commit b0bdb7b445
2 changed files with 24 additions and 20 deletions

View File

@ -17,8 +17,8 @@ Terms & Conditions: License.md in the root directory
# 若需转载或借鉴 许可声明请查看仓库目录下的 License.md
__version__ = "1.7.2"
__vername__ = "修复部分情况下的崩溃问题"
__version__ = "1.7.2.1"
__vername__ = "修复指令错误问题"
__author__ = (
("金羿", "Eilles Wan"),
("诸葛亮与八卦阵", "bgArray"),

View File

@ -688,15 +688,17 @@ class MidiConvert:
.replace("(", r"{")
.replace(")", r"}")
)
+ r"playsound {} @s ^ ^ ^{} {}".format(
mc_sound_ID, mc_distance_volume, volume_percentage
)
if note.percussive
else r"playsound {} @s ^ ^ ^{} {} {}".format(
mc_sound_ID,
mc_distance_volume,
volume_percentage,
mc_pitch,
+ (
r"playsound {} @s ^ ^ ^{} {}".format(
mc_sound_ID, mc_distance_volume, volume_percentage
)
if note.percussive
else r"playsound {} @s ^ ^ ^{} {} {}".format(
mc_sound_ID,
mc_distance_volume,
volume_percentage,
mc_pitch,
)
)
),
annotation=(
@ -791,15 +793,17 @@ class MidiConvert:
SingleCommand(
command=(
self.execute_cmd_head.format(player_selector)
+ r"playsound {} @s ^ ^ ^{} {}".format(
mc_sound_ID, mc_distance_volume, volume_percentage
)
if note.percussive
else r"playsound {} @s ^ ^ ^{} {} {}".format(
mc_sound_ID,
mc_distance_volume,
volume_percentage,
mc_pitch,
+ (
r"playsound {} @s ^ ^ ^{} {}".format(
mc_sound_ID, mc_distance_volume, volume_percentage
)
if note.percussive
else r"playsound {} @s ^ ^ ^{} {} {}".format(
mc_sound_ID,
mc_distance_volume,
volume_percentage,
mc_pitch,
)
)
),
annotation=(