-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
datapack version 48 item support #124
base: main
Are you sure you want to change the base?
Conversation
@@ -1120,7 +1119,7 @@ def call(self) -> str: | |||
if self.args["namespace"] == "" | |||
else self.args["namespace"] | |||
) | |||
ADVANCEMENT = "advancement" if self.datapack.version >= 48 else "advancements" | |||
ADVANCEMENT = self.datapack.version >= 48 and "advancement" or "advancements" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the point of making it harder to read
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yhea sorry this is caused by me reversting the version thing
@@ -1189,7 +1188,7 @@ def call(self) -> str: | |||
if self.args["namespace"] == "" | |||
else self.args["namespace"] | |||
) | |||
ADVANCEMENT = "advancement" if self.datapack.version >= 48 else "advancements" | |||
ADVANCEMENT = self.datapack.version >= 48 and "advancement" or "advancements" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this too
src/jmc/compile/datapack.py
Outdated
:param token_dict: Dictionary of string and Token | ||
:return: String that looks like object | ||
""" | ||
pairs = [] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure if I did it like this but please do pairs: list[type_here] = []
No description provided.