Added missing nullable annotation

This commit is contained in:
Auxilor
2021-11-01 21:06:50 +00:00
parent 0e439db7b3
commit b2a23e80a1

View File

@@ -107,7 +107,7 @@ public interface FastItemStack {
* @param itemStack The ItemStack.
* @return The FastItemStack.
*/
static FastItemStack wrap(final ItemStack itemStack) {
static FastItemStack wrap(@Nullable final ItemStack itemStack) {
return Eco.getHandler().createFastItemStack(Objects.requireNonNullElseGet(itemStack, () -> new ItemStack(Material.AIR)));
}
}