aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/util/ItemResolutionQuery.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/util/ItemResolutionQuery.java b/src/main/java/io/github/moulberry/notenoughupdates/util/ItemResolutionQuery.java
index b6be1171..9cefca1f 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/util/ItemResolutionQuery.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/util/ItemResolutionQuery.java
@@ -129,6 +129,9 @@ public class ItemResolutionQuery {
case "POTION":
resolvedName = resolvePotionName();
break;
+ case "BALLOON_HAT_2024":
+ resolvedName = resolveBalloonHatName();
+ break;
}
}
@@ -356,6 +359,11 @@ public class ItemResolutionQuery {
}
}
+ private String resolveBalloonHatName() {
+ String color = getExtraAttributes().getString("party_hat_color");
+ return "BALLOON_HAT_2024_" + color.toUpperCase(Locale.ROOT);
+ }
+
private NBTTagCompound getExtraAttributes() {
if (compound == null) return new NBTTagCompound();
return compound.getCompoundTag(EXTRA_ATTRIBUTES);