Skip to content

Commit

Permalink
Allow coloured names
Browse files Browse the repository at this point in the history
  • Loading branch information
magnusulf committed Jan 7, 2019
1 parent 97d6d10 commit 752f8e8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/dk/muj/dropnames/DropNames.java
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ else if (MConf.get().displayItemNotRenamed)
{
ret = Txt.getMaterialName(stack.getType());
}
ret = Txt.parse(ret);
}
else
{
Expand All @@ -100,7 +101,7 @@ else if (MConf.get().displayItemNotRenamed)
{
ret += " x" + String.valueOf(stack.getAmount());
}

return ret;
}

Expand Down Expand Up @@ -138,7 +139,7 @@ public static String getCustomNameOrb(ExperienceOrb orb)
int amount = orb.getExperience();
String ret = MConf.get().experienceOrbName;
if (MConf.get().displayExperienceOrbAmount) ret += " x" + String.valueOf(amount);

ret = Txt.parse(ret);
return ret;
}

Expand Down

0 comments on commit 752f8e8

Please sign in to comment.