#696: Respect the NotNull annotation of getChargedProjectiles in CraftMetaCrossbow
By: Martoph <sager1018@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user