diff --git a/61/build.py b/61/build.py index fb9cefa..a90d4a0 100644 --- a/61/build.py +++ b/61/build.py @@ -4,6 +4,6 @@ current_dir = os.getcwd() # Removing all old item Model json files, since they are now located in 'assets/minecraft/items' and are a different format! itemModelsDir = os.path.join(current_dir, "assets/minecraft/models/item") -jsonFiles = [name for name in os.listdir(itemModelsDir) if os.path.isfile(os.path.join(itemModelsDir, name))] +jsonFiles = [name for name in os.listdir(itemModelsDir) if os.path.isfile(os.path.join(itemModelsDir, name)) and name.endswith(".json") ] for jsonFile in jsonFiles: os.remove(os.path.join(itemModelsDir, jsonFile))