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 log spam on death #2045

Open
wants to merge 2 commits into
base: 1.20.1
Choose a base branch
from

Conversation

walksanatora
Copy link

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

Copy link

@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

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

@walksanatora
Copy link
Author

🙃

Copy link
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.

3 participants