Skip to content

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 requested a review from derklaro September 8, 2023 09:28
@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
@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.

3 participants