Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix recipes #349

Merged
merged 5 commits into from
Jan 11, 2021
Merged

Fix recipes #349

merged 5 commits into from
Jan 11, 2021

Conversation

Karang
Copy link
Contributor

@Karang Karang commented Jan 10, 2021

@Karang Karang requested a review from rom1504 January 10, 2021 22:40
@Karang
Copy link
Contributor Author

Karang commented Jan 10, 2021

In addition to this, more meaningful tests should be added to mineflayer. For instance the crafting test could craft a pickaxe, that would have caught this error earlier.

@rom1504
Copy link
Member

rom1504 commented Jan 10, 2021

Fix 1.9 and 1.10 recipes by copying 1.11

are you sure there's no additional things in 1.11 ?

@rom1504
Copy link
Member

rom1504 commented Jan 10, 2021

we probably also need to fix the extractor but that's independent

@Karang
Copy link
Contributor Author

Karang commented Jan 10, 2021

Fix 1.9 and 1.10 recipes by copying 1.11

are you sure there's no additional things in 1.11 ?

No i'm not, but its better to have more than having missing recipes

@rom1504
Copy link
Member

rom1504 commented Jan 10, 2021

what is missing in 1.9 and 1.10 exactly?

@Karang
Copy link
Contributor Author

Karang commented Jan 10, 2021

what is missing in 1.9 and 1.10 exactly?

What i found is it was missing the main pickaxes recipes https://github.com/PrismarineJS/minecraft-data/blob/master/data/pc/1.10/recipes.json#L5431
(there is only the one that combine 2 used pickaxes)
It should be: https://github.com/PrismarineJS/minecraft-data/blob/master/data/pc/1.12/recipes.json#L3423

But looking at the diff, there is actually a lot more recipes in those files than in other versions (27000 lines in 1.10 vs 7000 lines in 1.11 and 1.12). So they are both missing something... The only way to get it right would be to re-extract all recipes for versions below 1.13. If you want I can revert the commit for 1.9 and 1.10 in order to not delay the fixing of the upside down recipes.

@rom1504
Copy link
Member

rom1504 commented Jan 10, 2021

yeah I think it's better to keep the 2 things separate.
for other versions than 1.9 and 1.10 you just reversed the order right ?
let's just fix this order problem in this PR

for the missing/additional recipe problem, indeed the right fix would be to rerun burger on those
we could just use the 1.11 recipe file if that's difficult, but in that case I'd just delete the 1.9 and 1.10 files to avoid further confusion

@rom1504
Copy link
Member

rom1504 commented Jan 10, 2021

and I guess just exclude these 2 versions in your new test for now

@rom1504 rom1504 merged commit fd5146e into PrismarineJS:master Jan 11, 2021
@nickelpro nickelpro mentioned this pull request Jul 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pickaxe recipe upside down?
2 participants