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 shift crafting #6433

Merged
merged 1 commit into from
Aug 22, 2024
Merged

Fix shift crafting #6433

merged 1 commit into from
Aug 22, 2024

Conversation

dries-c
Copy link
Member

@dries-c dries-c commented Aug 22, 2024

Introduction

In versions before 1.21.20, the client will send multiple CraftRecipeStackRequestActions to craft all the items in your inventory. However, since the 1.21.20 shift crafting would throw an error since it now uses repetitions instead of multiple actions and you'd be placing more items in your inventory than you actually crafted from that one action.

Tests

Screen.Recording.2024-08-22.at.22.20.36.mov

I tested this PR by doing the following (tick all that apply):

  • Writing PHPUnit tests (commit these in the tests/phpunit folder)
  • Playtesting using a Minecraft client (provide screenshots or a video)
  • Writing a test plugin (provide the code and sample output)
  • Other (provide details)

@ShockedPlot7560 ShockedPlot7560 added Category: Gameplay Related to Minecraft gameplay experience Category: Core Related to internal functionality Type: Fix Bug fix, typo fix, or any other fix labels Aug 22, 2024
Copy link
Member

@ShockedPlot7560 ShockedPlot7560 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Simple, but could this have any side effects ?

@Superomarking
Copy link

Simple, but could this have any side effects ?

From what I checked, not really

@dktapps
Copy link
Member

dktapps commented Aug 22, 2024

What about the creative item creation, or are you saving that for a separate PR?

@dktapps dktapps merged commit ede363e into pmmp:stable Aug 22, 2024
15 checks passed
@dries-c dries-c deleted the shift-craft-fix branch August 25, 2024 12:26
@dries-c
Copy link
Member Author

dries-c commented Aug 25, 2024

I still have to do that, but I'm quite busy now. Maybe someone else can take that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Core Related to internal functionality Category: Gameplay Related to Minecraft gameplay experience Type: Fix Bug fix, typo fix, or any other fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants