diff --git a/Musicreater/utils.py b/Musicreater/utils.py index 517573f..5cb136a 100644 --- a/Musicreater/utils.py +++ b/Musicreater/utils.py @@ -1,7 +1,6 @@ import math import os - bdx_key = { "x": [b"\x0f", b"\x0e", b"\x1c", b"\x14", b"\x15"], "y": [b"\x11", b"\x10", b"\x1d", b"\x16", b"\x17"], @@ -265,12 +264,10 @@ def form_repeater_in_NBT_struct( delay: int, facing: int ): """生成中继器方块 - :param powered: - :param locked: :param facing: :param delay: 1~4 :return Block()""" - + from TrimMCStruct import Block return Block( @@ -340,7 +337,6 @@ def form_command_block_in_NBT_struct( :return:str """ - from TrimMCStruct import Block, TAG_Long return Block( @@ -389,7 +385,6 @@ def commands_to_structure( :return 成功与否,成功返回(结构类,结构占用大小),失败返回(False,str失败原因) """ - from TrimMCStruct import Structure _sideLength = bottem_side_length_of_smallest_square_bottom_box( diff --git a/clean_update.py b/clean_update.py index 6ba1243..410261a 100644 --- a/clean_update.py +++ b/clean_update.py @@ -10,7 +10,7 @@ def main(): with console.status("Find the full path of .egg-info folder"): egg_info: list = [] for file in os.listdir(): - if os.path.isfile(file) and file.endswith(".egg-info"): + if file.endswith(".egg-info"): egg_info.append(file) console.print(file) for file in track(["build", "dist", "logs", *egg_info], description="Deleting files"):