-
-
Notifications
You must be signed in to change notification settings - Fork 379
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
Fiix getArray mistake in CondIsTagged, add runtime error for bad namespace keys in ExprTag #7474
base: dev/patch
Are you sure you want to change the base?
Conversation
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.
Just a couple small things.
error("Invalid tag key: '" + name + "'. Tags may only contain a-z, 0-9, _, ., or - characters."); | ||
continue; | ||
} | ||
if (key == null) | ||
if (key == null) { | ||
error("Invalid tag key: '" + name + "'. Tags may only contain a-z, 0-9, _, ., or - characters."); |
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.
NamespacedKeys can also contain /
register a custom item tag named "or_list_tag_2" using spruce log | ||
|
||
loop 10 times: | ||
assert oak log is tagged as custom tag "or_list_tag_1" or custom tag "or_list_tag_2" |
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 believe the original issue was relating to tag A or B
?!?!
Maybe add another check:
assert oak log is tagged as custom tag "or_list_tag_1" or "or_list_tag_2"
I could be totally wrong here.
Description
changes getArray to getAnd in CondIsTagged to fix #7471
adds runtime error to catch invalid tags in ExprTag
Target Minecraft Versions: any
Requirements: none
Related Issues: #7471