Implemented Custom Model Data

issue #246
This commit is contained in:
Sn0wStorm
2020-04-12 22:21:17 +02:00
parent ef868fc7eb
commit 8f7696cdb5
14 changed files with 172 additions and 19 deletions
+4
View File
@@ -130,6 +130,7 @@ public class BIngredients {
cookedName = cookRecipe.getName(quality);
cookRecipe.getColor().colorBrew(potionMeta, potion, false);
brew.updateCustomModelData(potionMeta);
} else {
// new base potion
@@ -149,6 +150,9 @@ public class BIngredients {
lore.write();
}
cauldronRecipe.getColor().colorBrew(potionMeta, potion, true);
if (P.use1_14 && cauldronRecipe.getCmData() != 0) {
potionMeta.setCustomModelData(cauldronRecipe.getCmData());
}
}
}
}