geforkt von Mirrors/Paper
Add missing IAE check for PersistentDataContainer#has
Dieser Commit ist enthalten in:
Ursprung
69548ae4ec
Commit
4ab8912b68
@ -57,6 +57,7 @@ public class CraftPersistentDataContainer implements PersistentDataContainer {
|
||||
|
||||
@Override
|
||||
public boolean has(NamespacedKey key) {
|
||||
Preconditions.checkArgument(key != null, "The provided key for the custom value was null"); // Paper
|
||||
return this.customDataTags.get(key.toString()) != null;
|
||||
}
|
||||
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren