mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-07 00:48:28 +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> {
|
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'.
|
* Constant AIR item. Should be used instead of 'null'.
|
||||||
*/
|
*/
|
||||||
public static final @NotNull ItemStack AIR = ItemStack.of(Material.AIR);
|
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 StackingRule stackingRule;
|
||||||
|
|
||||||
private final Material material;
|
private final Material material;
|
||||||
|
Loading…
Reference in New Issue
Block a user