#696: Respect the NotNull annotation of getChargedProjectiles in CraftMetaCrossbow

By: Martoph <sager1018@gmail.com>
This commit is contained in:
CraftBukkit/Spigot 2020-06-29 09:09:52 +10:00
parent b1e0569835
commit f7e7987573

View File

@ -121,7 +121,7 @@ public class CraftMetaCrossbow extends CraftMetaItem implements CrossbowMeta {
@Override
public List<ItemStack> getChargedProjectiles() {
return (chargedProjectiles == null) ? null : ImmutableList.copyOf(chargedProjectiles);
return (chargedProjectiles == null) ? ImmutableList.of() : ImmutableList.copyOf(chargedProjectiles);
}
@Override