geforkt von Mirrors/Paper
Stop loop when flags set to false (#5101)
Dieser Commit ist enthalten in:
Ursprung
a5928db4a8
Commit
1a97356116
@ -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
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren