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: the npc inventory size should not exceed 54 #1306

Merged
merged 3 commits into from
Sep 9, 2023
Merged

Conversation

0utplay
Copy link
Member

@0utplay 0utplay commented Sep 8, 2023

Motivation

The npc inventory has a dynamic size feature that scales the inventory based on the amount of services to display but that feature misses a upper bound of 54 (which is needed as minecraft inventories cant be bigger)

Modification

Extracted the inventory size calculation into a separate method and set a upper bound of 54.

Result

The inventory is created with a maximum of 54 slots.

@0utplay 0utplay added v: 4.X This pull should be included in the 4.0 release t: fix A pull request introducing a fix for a bug. in: module An issue/pull request releated to one of the internal modules labels Sep 8, 2023
@0utplay 0utplay added this to the 4.0.0-RC10 milestone Sep 8, 2023
@0utplay 0utplay self-assigned this Sep 8, 2023
@github-actions
Copy link

github-actions bot commented Sep 8, 2023

Test Results

  47 files  ±0    47 suites  ±0   1m 18s ⏱️ -19s
394 tests ±0  394 ✔️ ±0  0 💤 ±0  0 ±0 
724 runs  ±0  724 ✔️ ±0  0 💤 ±0  0 ±0 

Results for commit ef1896d. ± Comparison against base commit fe1e270.

♻️ This comment has been updated with latest results.

@derklaro derklaro merged commit ec24887 into nightly Sep 9, 2023
5 checks passed
@derklaro derklaro deleted the fix/npc-inventory branch September 9, 2023 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: module An issue/pull request releated to one of the internal modules t: fix A pull request introducing a fix for a bug. v: 4.X This pull should be included in the 4.0 release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants