Skip to content

Commit

Permalink
Update process_input.py
Browse files Browse the repository at this point in the history
Fix item handheld
  • Loading branch information
Dablakbandit committed Jan 23, 2024
1 parent 9a343c6 commit 91534dd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/scripts/process_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ def modify_cape(model_file):

with open(model_file, 'w') as file:
json.dump(data, file, indent=4)
return None

def list_files(input):
with open(input, 'r') as file:
Expand Down Expand Up @@ -71,7 +72,7 @@ def process_input():
model_file = f"assets/ms/models/{model.replace('ms:', '')}.json"
parent = modify_neck(model_file)
neck = list_files('run/neck.txt')
if parent is not None and parent not in neck:
if parent is not None and parent not in neck and parent is not 'item/handheld':
neck.add(parent)
model_file = f"assets/ms/models/{parent.replace('ms:', '')}.json"
parent = modify_neck(model_file)
Expand All @@ -81,7 +82,7 @@ def process_input():
# Example usage:
model_file = f"assets/ms/models/{model.replace('ms:', '')}.json"
parent = modify_cape(model_file)
if parent is not None and parent not in cape:
if parent is not None and parent not in cape and parent is not 'item/handheld':
cape.add(parent)
model_file = f"assets/ms/models/{parent.replace('ms:', '')}.json"
modify_cape(model_file)
Expand Down

0 comments on commit 91534dd

Please sign in to comment.