aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md8
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/NEUManager.java10
2 files changed, 13 insertions, 5 deletions
diff --git a/README.md b/README.md
index 0b6648c4..5264198d 100644
--- a/README.md
+++ b/README.md
@@ -26,9 +26,9 @@
<a href="https://discord.gg/moulberry" target="_blank">
<img src="https://img.shields.io/discord/516977525906341928?label=discord&color=informational&logo=Discord&logoColor=FFFFFF" alt="discord">
</a>
- <!-- patreon -->
- <a href="https://www.patreon.com/moulberry" target="_blank">
- <img src="https://img.shields.io/endpoint.svg?url=https%3A%2F%2Fshieldsio-patreon.vercel.app%2Fapi%3Fusername%3Dmoulberry%26type%3Dpatrons&logoColor=FFFFFF&color=informational" alt="patreon">
+ <!-- downloads -->
+ <a href="https://github.com/Moulberry/NotEnoughUpdates" target="_blank">
+ <img src="https://img.shields.io/github/downloads/Moulberry/NotEnoughUpdates/total?label=lines&color=informational&logo=GitHub" alt="downloads">
</a>
</p>
@@ -76,4 +76,4 @@ NotEnoughUpdates (NEU) is a feature rich 1.8.9 Minecraft forge mod for Hypixel S
- A custom enchanting table GUI.
- Slot Locking
- Fishing Particle customization & alerts.
-- And much, much, more.
+- And [much, much, more.](https://gist.github.com/jani270/d33e249d40b0333b87ba5c5e70fca398)
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;