mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-25 09:41:29 +01:00
#696: Respect the NotNull annotation of getChargedProjectiles in CraftMetaCrossbow
By: Martoph <sager1018@gmail.com>
This commit is contained in:
parent
b1e0569835
commit
f7e7987573
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user