aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjani270 <69345714+jani270@users.noreply.github.com>2021-11-28 23:10:03 +0100
committerGitHub <noreply@github.com>2021-11-28 23:10:03 +0100
commit1e1ac8f1fa096b2acffb3065e4ba7583a00e1385 (patch)
tree9fd6feb17cf1d7204d4f049912a2d558d1a2fc42
parent18be3d697a2b2dd4bebea48ef476053d3b4b72f3 (diff)
downloadNotEnoughUpdates-1e1ac8f1fa096b2acffb3065e4ba7583a00e1385.tar.gz
NotEnoughUpdates-1e1ac8f1fa096b2acffb3065e4ba7583a00e1385.tar.bz2
NotEnoughUpdates-1e1ac8f1fa096b2acffb3065e4ba7583a00e1385.zip
Readme changes and custom rune system (#26)
* Readme changes * Fixed </a> thingy * runes * Added check
-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;