mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-29 11:42:55 +01:00
fix BaseTag constructor (#5095)
This commit is contained in:
parent
8fa15382bd
commit
e9a87b72be
1 changed files with 3 additions and 2 deletions
|
@ -675,10 +675,10 @@ index 0000000000000000000000000000000000000000..3f36165d89ae4aaa153dcb9ddbb8c58a
|
|||
+}
|
||||
diff --git a/src/main/java/io/papermc/paper/tag/BaseTag.java b/src/main/java/io/papermc/paper/tag/BaseTag.java
|
||||
new file mode 100644
|
||||
index 0000000000000000000000000000000000000000..c8777d2298c80c9579635000044e2d0a987cc15b
|
||||
index 0000000000000000000000000000000000000000..4b8552e4e4c07b197fa9431fa911535b0222561e
|
||||
--- /dev/null
|
||||
+++ b/src/main/java/io/papermc/paper/tag/BaseTag.java
|
||||
@@ -0,0 +1,159 @@
|
||||
@@ -0,0 +1,160 @@
|
||||
+package io.papermc.paper.tag;
|
||||
+
|
||||
+import com.google.common.collect.Lists;
|
||||
|
@ -717,6 +717,7 @@ index 0000000000000000000000000000000000000000..c8777d2298c80c9579635000044e2d0a
|
|||
+ 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