修复了乐音乐器的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 # 若需转载或借鉴 许可声明请查看仓库目录下的 License.md
__version__ = "1.7.2" __version__ = "1.7.2.1"
__vername__ = "修复部分情况下的崩溃问题" __vername__ = "修复指令错误问题"
__author__ = ( __author__ = (
("金羿", "Eilles Wan"), ("金羿", "Eilles Wan"),
("诸葛亮与八卦阵", "bgArray"), ("诸葛亮与八卦阵", "bgArray"),

View File

@ -688,7 +688,8 @@ class MidiConvert:
.replace("(", r"{") .replace("(", r"{")
.replace(")", r"}") .replace(")", r"}")
) )
+ r"playsound {} @s ^ ^ ^{} {}".format( + (
r"playsound {} @s ^ ^ ^{} {}".format(
mc_sound_ID, mc_distance_volume, volume_percentage mc_sound_ID, mc_distance_volume, volume_percentage
) )
if note.percussive if note.percussive
@ -698,6 +699,7 @@ class MidiConvert:
volume_percentage, volume_percentage,
mc_pitch, mc_pitch,
) )
)
), ),
annotation=( annotation=(
"{}播放{}%{}噪音".format( "{}播放{}%{}噪音".format(
@ -791,7 +793,8 @@ class MidiConvert:
SingleCommand( SingleCommand(
command=( command=(
self.execute_cmd_head.format(player_selector) self.execute_cmd_head.format(player_selector)
+ r"playsound {} @s ^ ^ ^{} {}".format( + (
r"playsound {} @s ^ ^ ^{} {}".format(
mc_sound_ID, mc_distance_volume, volume_percentage mc_sound_ID, mc_distance_volume, volume_percentage
) )
if note.percussive if note.percussive
@ -801,6 +804,7 @@ class MidiConvert:
volume_percentage, volume_percentage,
mc_pitch, mc_pitch,
) )
)
), ),
annotation=( annotation=(
"{}播放{}%{}噪音".format( "{}播放{}%{}噪音".format(