mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-02 14:38:26 +01:00
Fix NPE
This commit is contained in:
parent
7944977cd5
commit
40ae462d89
@ -26,13 +26,13 @@ import java.util.function.UnaryOperator;
|
||||
*/
|
||||
public final class ItemStack implements TagReadable, HoverEventSource<HoverEvent.ShowItem> {
|
||||
|
||||
private static final @NotNull VanillaStackingRule DEFAULT_STACKING_RULE = new VanillaStackingRule();
|
||||
|
||||
/**
|
||||
* Constant AIR item. Should be used instead of 'null'.
|
||||
*/
|
||||
public static final @NotNull ItemStack AIR = ItemStack.of(Material.AIR);
|
||||
|
||||
private static final @NotNull VanillaStackingRule DEFAULT_STACKING_RULE = new VanillaStackingRule();
|
||||
|
||||
private final StackingRule stackingRule;
|
||||
|
||||
private final Material material;
|
||||
|
Loading…
Reference in New Issue
Block a user