diff options
| author | Roman / Linnea Gräf <roman.graef@gmail.com> | 2022-09-24 13:17:00 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-24 13:17:00 +0200 |
| commit | 1e71e3e515fc17034e2e73a9b5e6012637204453 (patch) | |
| tree | df357d906fb8fe592fbc67e7667ac73026a2397c /src/main/java/io/github/moulberry/notenoughupdates/NEUManager.java | |
| parent | 9a0db0280a0863ca6bfd372bd2305ff9e4d81978 (diff) | |
| download | notenoughupdates-1e71e3e515fc17034e2e73a9b5e6012637204453.tar.gz notenoughupdates-1e71e3e515fc17034e2e73a9b5e6012637204453.tar.bz2 notenoughupdates-1e71e3e515fc17034e2e73a9b5e6012637204453.zip | |
Fix missing repo crash in PetInvOverlay (#305)
* Fix missing repo crash in PetInvOverlay
* Add 2.1.md to *not* *satisfy* erymanthus (*not* RayDeezNuts)
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/NEUManager.java')
| -rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/NEUManager.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/NEUManager.java b/src/main/java/io/github/moulberry/notenoughupdates/NEUManager.java index 62b24111..7a2389d4 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/NEUManager.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/NEUManager.java @@ -1267,7 +1267,7 @@ public class NEUManager { } } - public HashMap<String, String> getLoreReplacements(String petname, String tier, int level) { + public HashMap<String, String> getPetLoreReplacements(String petname, String tier, int level) { JsonObject petnums = null; if (petname != null && tier != null) { petnums = Constants.PETNUMS; @@ -1392,7 +1392,7 @@ public class NEUManager { return replacements; } - public HashMap<String, String> getLoreReplacements(NBTTagCompound tag, int level) { + public HashMap<String, String> getPetLoreReplacements(NBTTagCompound tag, int level) { String petname = null; String tier = null; if (tag != null && tag.hasKey("ExtraAttributes")) { @@ -1426,7 +1426,7 @@ public class NEUManager { } } } - return getLoreReplacements(petname, tier, level); + return getPetLoreReplacements(petname, tier, level); } public NBTTagList processLore(JsonArray lore, HashMap<String, String> replacements) { @@ -1497,7 +1497,7 @@ public class NEUManager { HashMap<String, String> replacements = new HashMap<>(); if (useReplacements) { - replacements = getLoreReplacements(stack.getTagCompound(), -1); + replacements = getPetLoreReplacements(stack.getTagCompound(), -1); String displayName = json.get("displayname").getAsString(); for (Map.Entry<String, String> entry : replacements.entrySet()) { |
