mirror of
https://github.com/filoghost/HolographicDisplays.git
synced 2025-01-07 08:37:50 +01:00
Fix durability not being saved correctly.
This commit is contained in:
parent
950092d6fd
commit
b0fadaa002
@ -102,7 +102,7 @@ public class HologramDatabase {
|
|||||||
|
|
||||||
} else if (line instanceof CraftItemLine) {
|
} else if (line instanceof CraftItemLine) {
|
||||||
CraftItemLine itemLine = (CraftItemLine) line;
|
CraftItemLine itemLine = (CraftItemLine) line;
|
||||||
return "ICON: " + itemLine.getItemStack().getType().toString().replace("_", " ").toLowerCase() + (itemLine.getItemStack().getDurability() != 0 ? String.valueOf(itemLine.getItemStack().getDurability()) : "");
|
return "ICON: " + itemLine.getItemStack().getType().toString().replace("_", " ").toLowerCase() + (itemLine.getItemStack().getDurability() != 0 ? ":" + itemLine.getItemStack().getDurability() : "");
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
return "Unknown";
|
return "Unknown";
|
||||||
|
Loading…
Reference in New Issue
Block a user