13
0
geforkt von Mirrors/Paper

Stop loop when flags set to false (#5101)

Dieser Commit ist enthalten in:
Bierque Jason 2021-02-21 13:34:08 +01:00 committet von GitHub
Ursprung a5928db4a8
Commit 1a97356116
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23

Datei anzeigen

@ -418,14 +418,14 @@ index 41627c49decca02635036c970674f958e4de1b4d..ccf1c5d27f83d6a82a0fdb6ff839b762
+ +
+ // not a fan of this + // not a fan of this
+ private boolean ofAcceptableType(Collection<Namespaced> namespacedResources) { + private boolean ofAcceptableType(Collection<Namespaced> namespacedResources) {
+ boolean valid = true; +
+ for (Namespaced resource : namespacedResources) { + for (Namespaced resource : namespacedResources) {
+ if (valid && !(resource instanceof org.bukkit.NamespacedKey || resource instanceof com.destroystokyo.paper.NamespacedTag)) { + if (!(resource instanceof org.bukkit.NamespacedKey || resource instanceof com.destroystokyo.paper.NamespacedTag)) {
+ valid = false; + return false;
+ } + }
+ } + }
+ +
+ return valid; + return true;
+ } + }
+ // Paper end + // Paper end
} }