mirror of
https://github.com/GeorgH93/Minepacks.git
synced 2024-12-04 14:03:24 +01:00
Bugfixes
This commit is contained in:
parent
ba680b3b95
commit
5fea92c417
@ -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
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user