minor changes so codacy is happy

This commit is contained in:
Fernando Pettinelli 2020-09-14 17:36:39 -03:00 committed by Brianna
parent af6f67ff9c
commit 1fbb35d0e1
2 changed files with 4 additions and 3 deletions

View File

@ -91,7 +91,7 @@ public class VoucherEditorMenu extends IconInv {
}));
addIcon(13, new StringIcon(instance, new ItemBuilder(voucher.getTexture() == null ? CompatibleMaterial.PLAYER_HEAD.getItem() : ItemUtils.getCustomHead(voucher.getTexture()))
.name(ChatColor.YELLOW + "Skull Texture")
.name(YELLOW + "Skull Texture")
.lore(GRAY + "Right click to edit", GRAY + "Left click to clear").build(), voucher.getTexture(), (player, editString) -> {
voucher.setTexture(editString);
reopen(player);

View File

@ -39,9 +39,10 @@ public class SkullUtils {
profileField.setAccessible(true);
profileField.set(skullMeta, gameProfile);
itemStack.setItemMeta(skullMeta);
return itemStack;
} catch (IllegalAccessException | NoSuchFieldException ex) {
throw new RuntimeException("Reflection error while setting head texture", ex);
ex.printStackTrace();
}
return itemStack;
}
}