Update butterfly component datafix

This commit is contained in:
Sollace 2024-10-03 18:30:29 +01:00
parent 84b672ffbb
commit 5227d80c70
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB

View file

@ -41,7 +41,11 @@ final class UnicopiaItemStackComponentizations {
data.moveToComponent("spell_traits", "unicopia:spell_traits"); data.moveToComponent("spell_traits", "unicopia:spell_traits");
} }
if (data.itemEquals("unicopia:butterfly")) { if (data.itemEquals("unicopia:butterfly")) {
data.moveToComponent("variant", "unicopia:butterfly_variant"); data.getAndRemove("variant").result().ifPresent(variant -> {
data.setComponent("unicopia:butterfly_variant", dynamic.emptyMap()
.set("variant", variant)
.set("show_in_tooltip", dynamic.createBoolean(true)));
});
} }
if (data.itemEquals("unicopia:giant_balloon")) { if (data.itemEquals("unicopia:giant_balloon")) {
data.moveToComponent("design", "unicopia:balloon_design"); data.moveToComponent("design", "unicopia:balloon_design");