Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-19 13:00:06 +01:00
#696: Respect the NotNull annotation of getChargedProjectiles in CraftMetaCrossbow
Dieser Commit ist enthalten in:
Ursprung
1a3363dbe6
Commit
cf01fd9d7d
@ -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
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren