13
0
geforkt von Mirrors/Paper

#696: Respect the NotNull annotation of getChargedProjectiles in CraftMetaCrossbow

By: Martoph <sager1018@gmail.com>
Dieser Commit ist enthalten in:
CraftBukkit/Spigot 2020-06-29 09:09:52 +10:00
Ursprung b1e0569835
Commit f7e7987573

Datei anzeigen

@ -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