Stacking rule should be defaulted to vanilla if null

This commit is contained in:
TheMode 2021-04-13 23:15:51 +02:00
parent 6ba336ee73
commit a3f1235df4

View File

@ -37,7 +37,7 @@ public final class ItemStack implements HoverEventSource<HoverEvent.ShowItem> {
protected ItemStack(@NotNull Material material, int amount,
@NotNull ItemMeta meta,
@NotNull StackingRule stackingRule) {
@Nullable StackingRule stackingRule) {
this.material = material;
this.amount = amount;
this.meta = meta;