Skip to content

Commit

Permalink
mod: update IRIS_TAG_SUPPORT to use >= 2
Browse files Browse the repository at this point in the history
  • Loading branch information
ninjamike1211 committed Nov 28, 2024
1 parent 1e01a6a commit a5e4e65
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/content/docs/reference/Macros/IRIS_TAG_SUPPORT.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ This macro is defined if the version of Iris supports tags for defining block ID
Prior to Iris 1.8 the lines in [`block.properties`](/reference/miscellaneous/block_properties) took priority based on the order in the file. For Iris 1.8 and later, individual entires always take priority over tags, regardless of their order. For Iris versions with this change, `IRIS_TAG_SUPPORT` is defined as `2` and can be checked in [`block.properties`](/reference/miscellaneous/block_properties) like so:

```glsl
#if IRIS_TAG_SUPPORT == 2
#if IRIS_TAG_SUPPORT >= 2
...
#endif
```
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ To specify a tag, use the following syntax `%<tag>` instead of the old block ID
#endif

# for example
#ifdef IRIS_TAG_SUPPORT
#if IRIS_TAG_SUPPORT >= 2
block.9 = %minecraft:leaves %logs
#endif
```
Expand Down

0 comments on commit a5e4e65

Please sign in to comment.