Skip to content

Conversation

@PrototypeTrousers
Copy link
Contributor

What

Yet another Crafting Station Issue F I X.
This time fix the issue with Shapeless Recipes Murdering the server performance, when the Crafting Station is surrounded by inventories with many slots
Also made recipe re-matching stricter to avoid issue with recipes with NBT-dependent inputs not correctly updating the output.
(Like potion arrows)

Implementation Details

Implement a cache for the tested stacks for the current recipe while also testing them individually against the ingredients before calling the recipe matches() method to avoid the recursion of Shapeless recipes

Outcome

Game is playable while a shapeless recipe is on the crafting station's crafting grid

Additional Information

Fixes #1235, and hopefully #935

Potential Compatibility Issues

This section is for defining possible compatibility issues. It must be used when there are API changes, item/block/material/machine changes, or recipe changes.

Please fill in as much useful information as possible. Also, please remove all unused sections, including this and the other explanations.

@PrototypeTrousers PrototypeTrousers added the type: bug Something isn't working label Oct 31, 2022
@ALongStringOfNumbers ALongStringOfNumbers added the status: release blocker Must have for next release label Nov 2, 2022
@TechLord22 TechLord22 merged commit 9883ff9 into master Nov 2, 2022
@TechLord22 TechLord22 deleted the yetanothercraftingstationpr branch November 2, 2022 04:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: release blocker Must have for next release type: bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The server has stopped responding!

4 participants