Skip to content

fix log spam on death#2045

Merged
wrincewind merged 2 commits intoWayofTime:1.20.1from
walksanatora:1.20.1-nologspam
Jul 21, 2025
Merged

fix log spam on death#2045
wrincewind merged 2 commits intoWayofTime:1.20.1from
walksanatora:1.20.1-nologspam

Conversation

@walksanatora
Copy link
Copy Markdown
Contributor

closes #2038 by making function return a empty list if the curios list is not present

Copy link
Copy Markdown

@Twisted-Code Twisted-Code left a comment

Choose a reason for hiding this comment

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

Looks like we just™ return early, with an empty list, if there's no curio inventory to return (because the player is dead, for instance). Intuitive enough to me, but bear in mind I'm not particularly experienced with Java (I also didn't look at the wider context in which this sits but that shouldn't matter if your methods are named appropriately).

@Twisted-Code
Copy link
Copy Markdown

Shouldn't you have checked that it compiled before submitting a PR, as part of making sure it would work?

@walksanatora
Copy link
Copy Markdown
Contributor Author

🙃

Copy link
Copy Markdown
Collaborator

@VT-14 VT-14 left a comment

Choose a reason for hiding this comment

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

This works in dev, and should fix issues #2040 and #2038.

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.

[1.20.1] Log spam upon player death

4 participants