Skip to content

Commit

Permalink
Merge pull request #616 from Moo-Ack-Productions/fix-update-data-gene…
Browse files Browse the repository at this point in the history
…rator

Add non_color_options to mcprep base data json
  • Loading branch information
TheDuckCow authored Aug 8, 2024
2 parents 03000b0 + ebed056 commit e3f136e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
5 changes: 5 additions & 0 deletions MCprep_addon/MCprep_resources/mcprep_data_update.json
Original file line number Diff line number Diff line change
Expand Up @@ -4608,6 +4608,11 @@
"Strider",
"Warden"
],
"non_color_options": [
"Non-Color",
"Non-Colour Data",
"NONE"
],
"unspawnable_for_now": [
"banner",
"bed",
Expand Down
2 changes: 1 addition & 1 deletion MCprep_addon/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def apply_noncolor_data(node: Node) -> Optional[MCprepError]:
"""
options: List[str] = []
if env.json_data:
options = env.json_data["non_color_options"]
options = env.json_data.get("non_color_options", [])

if not node.image:
env.log("Node has no image applied yet, cannot change colorspace")
Expand Down
8 changes: 7 additions & 1 deletion mcprep_data_base.json
Original file line number Diff line number Diff line change
Expand Up @@ -127,5 +127,11 @@
],
"make_real": [
"chest",
"chest_double"]
"chest_double"
],
"non_color_options": [
"Non-Color",
"Non-Colour Data",
"NONE"
]
}

0 comments on commit e3f136e

Please sign in to comment.