Skip to content
This repository has been archived by the owner on Jan 13, 2020. It is now read-only.

Prevent Item Loss on Duplicate Death Event #1

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

Conversation

NathanWolf
Copy link

If a player is damaged more than once in a tick, more than one death event can get sent.

In this case, the plugin would lose the players' items (and avoid dropping them!) since it overwrites the stored inventory with the player's empty inventory on the second death event.

This fixes that case by checking for an existing stored inventory on death, and not overwriting it if one is found.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant