fix BaseTag constructor (#5095)
This commit is contained in:
@@ -717,6 +717,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
+ public BaseTag(@NotNull Class<T> clazz, @NotNull NamespacedKey key, @NotNull Collection<T> values, @NotNull Predicate<T>... globalPredicates) {
|
+ public BaseTag(@NotNull Class<T> clazz, @NotNull NamespacedKey key, @NotNull Collection<T> values, @NotNull Predicate<T>... globalPredicates) {
|
||||||
+ this.key = key != null ? key : NamespacedKey.randomKey();
|
+ this.key = key != null ? key : NamespacedKey.randomKey();
|
||||||
+ this.tagged = clazz.isEnum() ? createEnumSet(clazz) : new HashSet<>();
|
+ this.tagged = clazz.isEnum() ? createEnumSet(clazz) : new HashSet<>();
|
||||||
|
+ this.tagged.addAll(values);
|
||||||
+ this.globalPredicates = Lists.newArrayList(globalPredicates);
|
+ this.globalPredicates = Lists.newArrayList(globalPredicates);
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
|
|||||||
Reference in New Issue
Block a user