Skip to content

Commit

Permalink
fix @nullable annotation for BaseItemBuilder#setNbt
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Dumitru authored and Matt committed Feb 23, 2022
1 parent 0622ec5 commit 7b58175
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ public B color(@NotNull final Color color) {
*/
@NotNull
@Contract("_, _ -> this")
public B setNbt(@NotNull final String key, @Nullable final String value) {
public B setNbt(@NotNull final String key, @NotNull final String value) {
itemStack.setItemMeta(meta);
itemStack = ItemNbt.setString(itemStack, key, value);
meta = itemStack.getItemMeta();
Expand Down

0 comments on commit 7b58175

Please sign in to comment.