#696: Respect the NotNull annotation of getChargedProjectiles in CraftMetaCrossbow

This commit is contained in:
Martoph 2020-06-29 09:09:52 +10:00 committed by md_5
parent 1a3363dbe6
commit cf01fd9d7d
No known key found for this signature in database
GPG Key ID: E8E901AC7C617C11

View File

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