Skip to content

Commit

Permalink
and fixed new TagKey to TagKey.create. Why is that even public..
Browse files Browse the repository at this point in the history
  • Loading branch information
MehVahdJukaar committed Jun 11, 2024
1 parent bd499d3 commit 7ea96f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/violetmoon/zeta/util/RegistryUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public static <T> List<T> massRegistryGet(Collection<String> coll, Registry<T> r
ImmutableList.Builder<T> builder = new ImmutableList.Builder<>();
for (String s : coll) {
if (s.startsWith("#")) {
TagKey<T> tag = new TagKey<>(reg.key(), new ResourceLocation(s.substring(1)));
TagKey<T> tag = TagKey.create(reg.key(), new ResourceLocation(s.substring(1)));
reg.getTagOrEmpty(tag).forEach(tHolder -> builder.add(tHolder.value()));
} else {
reg.getOptional(new ResourceLocation(s)).ifPresent(builder::add);
Expand Down

0 comments on commit 7ea96f9

Please sign in to comment.