Add missing IAE check for PersistentDataContainer#has

This commit is contained in:
u9g 2022-01-03 23:32:42 -05:00
parent 69548ae4ec
commit 4ab8912b68

View file

@ -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;
}