This commit is contained in:
GeorgH93 2020-04-08 03:47:51 +02:00
parent ba680b3b95
commit 5fea92c417
No known key found for this signature in database
GPG Key ID: D1630D37F9E4B3C8
2 changed files with 4 additions and 3 deletions

View File

@ -46,7 +46,7 @@ public ItemConfig(final @NotNull String material, final @NotNull String displayN
{
this.material = HeadUtils.HEAD_MATERIAL;
model = MCVersion.isNewerOrEqualThan(MCVersion.MC_1_14) ? model : -1;
producer = MCVersion.isNewerOrEqualThan(MCVersion.MC_1_8) ? ItemProducerHead.INSTANCE : ItemProducerLegacy.INSTANCE;
producer = (MCVersion.isNewerOrEqualThan(MCVersion.MC_1_8) && value != null) ? ItemProducerHead.INSTANCE : ItemProducerLegacy.INSTANCE;
}
else
{

View File

@ -35,8 +35,9 @@ private ItemProducerHead()
@Override
public @NotNull ItemStack make(@NotNull ItemConfig config, int amount)
{ //TODO add size parameter
ItemStack stack = HeadUtils.fromBase64(config.getValue(), config.getDisplayName(), MINEPACKS_UUID);
{
//noinspection ConstantConditions
ItemStack stack = HeadUtils.fromBase64(config.getValue(), config.getDisplayName(), MINEPACKS_UUID, amount);
ItemMeta meta = stack.getItemMeta();
if(meta != null)
{