diff --git a/Spigot-Server-Patches/Implement-an-API-for-CanPlaceOn-and-CanDestroy-NBT-v.patch b/Spigot-Server-Patches/Implement-an-API-for-CanPlaceOn-and-CanDestroy-NBT-v.patch index 7cfdda308f..a9636523c5 100644 --- a/Spigot-Server-Patches/Implement-an-API-for-CanPlaceOn-and-CanDestroy-NBT-v.patch +++ b/Spigot-Server-Patches/Implement-an-API-for-CanPlaceOn-and-CanDestroy-NBT-v.patch @@ -418,14 +418,14 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + + // not a fan of this + private boolean ofAcceptableType(Collection namespacedResources) { -+ boolean valid = true; ++ + for (Namespaced resource : namespacedResources) { -+ if (valid && !(resource instanceof org.bukkit.NamespacedKey || resource instanceof com.destroystokyo.paper.NamespacedTag)) { -+ valid = false; ++ if (!(resource instanceof org.bukkit.NamespacedKey || resource instanceof com.destroystokyo.paper.NamespacedTag)) { ++ return false; + } + } + -+ return valid; ++ return true; + } + // Paper end }