[ci skip] Clarify strip NBT comment
@@ -68,7 +68,8 @@ public class JavaDeclareRecipesTranslator extends PacketTranslator<ServerDeclare
case CRAFTING_SHAPELESS: {
ShapelessRecipeData shapelessRecipeData = (ShapelessRecipeData) recipe.getData();
ItemData output = ItemTranslator.translateToBedrock(session, shapelessRecipeData.getResult());
- output = ItemData.of(output.getId(), output.getDamage(), output.getCount()); //strip NBT
+ // Strip NBT - tools won't appear in the recipe book otherwise
+ output = ItemData.of(output.getId(), output.getDamage(), output.getCount());
ItemData[][] inputCombinations = combinations(session, shapelessRecipeData.getIngredients());
for (ItemData[] inputs : inputCombinations) {
UUID uuid = UUID.randomUUID();
@@ -81,7 +82,8 @@ public class JavaDeclareRecipesTranslator extends PacketTranslator<ServerDeclare
case CRAFTING_SHAPED: {
ShapedRecipeData shapedRecipeData = (ShapedRecipeData) recipe.getData();
ItemData output = ItemTranslator.translateToBedrock(session, shapedRecipeData.getResult());
- output = ItemData.of(output.getId(), output.getDamage(), output.getCount()); //strip NBT
+ // See above
+ output = ItemData.of(output.getId(), output.getDamage(), output.getCount());
ItemData[][] inputCombinations = combinations(session, shapedRecipeData.getIngredients());
for (ItemData[] inputs : inputCombinations) {
UUID uuid = UUID.randomUUID();
