mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-26 01:51:42 +01:00
Default to max stack size
This commit is contained in:
parent
280d1215de
commit
4c07e584b7
@ -119,6 +119,7 @@ public class ItemDb implements IConf, net.ess3.api.IItemDb {
|
|||||||
Material material = data.getMaterial();
|
Material material = data.getMaterial();
|
||||||
|
|
||||||
ItemStack stack = new ItemStack(material);
|
ItemStack stack = new ItemStack(material);
|
||||||
|
stack.setAmount(material.getMaxStackSize());
|
||||||
|
|
||||||
if (potionData != null) {
|
if (potionData != null) {
|
||||||
PotionMeta meta = (PotionMeta) stack.getItemMeta();
|
PotionMeta meta = (PotionMeta) stack.getItemMeta();
|
||||||
|
Loading…
Reference in New Issue
Block a user