mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 23:38:25 +01:00
Add missing IAE check for PersistentDataContainer#has
This commit is contained in:
parent
69548ae4ec
commit
4ab8912b68
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue