From 8f5c84776f3745390f93eb6399c215cf9563274e Mon Sep 17 00:00:00 2001 From: Jake Potrebic Date: Thu, 21 Jan 2021 10:57:13 -0800 Subject: [PATCH] fix BaseTag constructor (#5095) --- Spigot-API-Patches/Add-Material-Tags.patch | 1 + 1 file changed, 1 insertion(+) diff --git a/Spigot-API-Patches/Add-Material-Tags.patch b/Spigot-API-Patches/Add-Material-Tags.patch index 2bf9f9aeda..f4c51115a5 100644 --- a/Spigot-API-Patches/Add-Material-Tags.patch +++ b/Spigot-API-Patches/Add-Material-Tags.patch @@ -717,6 +717,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + public BaseTag(@NotNull Class clazz, @NotNull NamespacedKey key, @NotNull Collection values, @NotNull Predicate... 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); + } +