Skip to content

fix: drop transient items when player loses connection#183

Open
OldManYells wants to merge 1 commit intoretromcorg:masterfrom
OldManYells:retain-player-transient-inventories-on-disconnect
Open

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

Conversation

@OldManYells
Copy link
Copy Markdown

@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

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 participant