mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-26 18:21:35 +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
|
@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
|
||||||
|
Loading…
Reference in New Issue
Block a user