Files
rom1504botGitHubgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>extremeheatCopilotextremeheat
e359900c40 🎈 Add version 1.21.8 (#53)
* Add version 1.21.8

* send Change branch from 'main' to 'master'

* 🎈 Fix empty ingredients in 1.21.8 recipe generation by using display API correctly (#54)

* Initial plan

* Fix empty ingredients in 1.21.8 by using sl.getIngredients() instead of sl.display()

Co-authored-by: extremeheat <13713600+extremeheat@users.noreply.github.com>

* Update README.md

* Fix 1.21.8 shapeless recipe ingredients by using display API correctly

- Changed from trying to access sl.ingredients field (package-private) to using sl.display() properly
- Extract ingredients from ShapelessCraftingRecipeDisplay using SlotDisplay.resolveForFirstStack()
- Use SlotDisplayContext.fromLevel() to provide proper context for resolving items
- Successfully generates 295 shapeless recipes with proper ingredient arrays instead of empty arrays
- Tested with full data generation run - recipes.json now contains populated ingredients

Co-authored-by: extremeheat <13713600+extremeheat@users.noreply.github.com>

* Update build.yml

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: extremeheat <13713600+extremeheat@users.noreply.github.com>
Co-authored-by: extremeheat <extreme@protonmail.ch>

* Rename AGENTS.md to copilot-instructions.md

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: extremeheat <extreme@protonmail.ch>
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: extremeheat <13713600+extremeheat@users.noreply.github.com>
2025-09-07 08:33:48 +02:00

25 lines
740 B
JavaScript

const gh = require('gh-helpers')()
module.exports = async ([mergedArtifactURL], helpers) => {
// Have minecraft-data handle this successful update
const dispatchPayload = {
owner: 'PrismarineJS',
repo: 'minecraft-data',
workflow: 'handle-mcpc-generator.yml',
branch: 'master',
inputs: {
versions: JSON.stringify(require('../../versions.json')),
mergedArtifactURL,
prNumber: process.env.PR_NUMBER
}
}
console.log('Sending workflow dispatch', dispatchPayload)
await gh.sendWorkflowDispatch(dispatchPayload)
}
if (require.main === module) {
const merged = process.env.ARTIFACT_URL
console.log('Handling merged artifacts @', merged)
module.exports([merged], { reply: console.log })
}