Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBusyBiscuit committed Jan 3, 2020
1 parent 3ea060f commit 447cb48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/me/john000708/barrels/items/IDCard.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ public ItemInteractionHandler getItemHandler() {
Block clickedBlock = e.getClickedBlock();

ItemMeta meta = item.getItemMeta();
if (!meta.hasLore()) return false;
if (!meta.hasLore()) return true;

List<String> lore = item.getItemMeta().getLore();
if (lore.size() != 2) return false;
if (lore.size() != 2) return true;

if (lore.get(0).equals("")) {
lore.set(0, ChatColor.translateAlternateColorCodes('&', "&0" + p.getUniqueId().toString()));
Expand Down

0 comments on commit 447cb48

Please sign in to comment.