aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/NEUManager.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/NEUManager.java b/src/main/java/io/github/moulberry/notenoughupdates/NEUManager.java
index f9c5b01b..01e97c75 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/NEUManager.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/NEUManager.java
@@ -708,7 +708,7 @@ public class NEUManager {
}
}
}
- if ("ENCHANTED_BOOK".equals(internalname)) {
+ if ("ENCHANTED_BOOK".equals(internalname) && ea.hasKey("enchantments", 10)) {
NBTTagCompound enchants = ea.getCompoundTag("enchantments");
for (String enchname : enchants.getKeySet()) {
@@ -716,6 +716,14 @@ public class NEUManager {
break;
}
}
+ if ("RUNE".equals(internalname) && ea.hasKey("runes", 10)) {
+ NBTTagCompound rune = ea.getCompoundTag("runes");
+
+ for (String runename : rune.getKeySet()) {
+ internalname = runename.toUpperCase() + "_RUNE" + ";" + rune.getInteger(runename);
+ break;
+ }
+ }
}
return internalname;