diff --git a/src/main/java/com/gmail/nossr50/commands/McImportCommand.java b/src/main/java/com/gmail/nossr50/commands/McImportCommand.java index 7cd13b87a..a372dca0d 100644 --- a/src/main/java/com/gmail/nossr50/commands/McImportCommand.java +++ b/src/main/java/com/gmail/nossr50/commands/McImportCommand.java @@ -329,7 +329,7 @@ public class McImportCommand implements CommandExecutor { Material material = Material.matchMaterial(materialName); short durability = (material == null) ? (short) 9999 : material.getMaxDurability(); - skillContents.add(" " + " " + "Durability: " + durability); + skillContents.add(" " + " " + "Durability: " + ((durability > 0) ? durability : (short) 9999)); } private HashMap> getConfigSectionsUnknown(String modName, HashMap> materialNames) {