mirror of
https://github.com/songoda/EpicVouchers.git
synced 2024-11-22 01:56:21 +01:00
minor changes so codacy is happy
This commit is contained in:
parent
af6f67ff9c
commit
1fbb35d0e1
@ -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);
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user