mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-30 16:19:03 +01:00
fix BaseTag constructor (#5095)
This commit is contained in:
parent
fc50bb8933
commit
8f5c84776f
1 changed files with 1 additions and 0 deletions
|
@ -717,6 +717,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||
+ 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.tagged = clazz.isEnum() ? createEnumSet(clazz) : new HashSet<>();
|
||||
+ this.tagged.addAll(values);
|
||||
+ this.globalPredicates = Lists.newArrayList(globalPredicates);
|
||||
+ }
|
||||
+
|
||||
|
|
Loading…
Reference in a new issue