Skip to content

fix: drop transient items when player loses connection#183

Merged
Garsooon merged 1 commit intoretromcorg:masterfrom
OldManYells:retain-player-transient-inventories-on-disconnect
Apr 5, 2026
Merged

fix: drop transient items when player loses connection#183
Garsooon merged 1 commit intoretromcorg:masterfrom
OldManYells:retain-player-transient-inventories-on-disconnect

Conversation

@OldManYells
Copy link
Copy Markdown
Contributor

@OldManYells OldManYells commented Mar 12, 2026

📌 Pull Request

Description

There's a vanilla bug where on client crash whether single player or multiplayer, items in transient inventories (cursor, crafting inventory or workbench) get "lost" as they're are not accounted for and not even dropped on the ground.

This PR seems to fix that issue for Poseidon server.

Edit: As i typically do, also added some function wrapping for renaming but since this was mainly a quick attempt to fix the issue i didn't go through the whole flow doing that because it would require more time to ensure that proper naming was set. This in particular seems fairly easy

@Garsooon Garsooon self-requested a review April 5, 2026 10:38
Copy link
Copy Markdown
Member

@Garsooon Garsooon left a comment

Choose a reason for hiding this comment

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

Changes look fine

@Garsooon Garsooon merged commit 93620fe into retromcorg:master Apr 5, 2026
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.

2 participants