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

Database Context issues when Items change their owner #7

Closed
sven-n opened this issue Dec 1, 2017 · 2 comments
Closed

Database Context issues when Items change their owner #7

sven-n opened this issue Dec 1, 2017 · 2 comments

Comments

@sven-n
Copy link
Member

sven-n commented Dec 1, 2017

Currently it's not taken care of Items which are changing their owner. This can happen by several ways:

  • Item dropped
    • Item will disappear after some time -> Item will be saved by dropping player context
    • Item will be picked up by another player -> Exception at next save point
  • Item is traded -> Exception at next save point
@sven-n sven-n closed this as completed in b31d09d Dec 11, 2017
@sven-n
Copy link
Member Author

sven-n commented Dec 11, 2017

The item drop issue is still open.

Also at trade, when saving the persistence context of the receiving player, the item is inserted instead of updated.

@sven-n sven-n reopened this Dec 11, 2017
sven-n added a commit that referenced this issue Dec 13, 2017
@sven-n
Copy link
Member Author

sven-n commented Dec 19, 2017

Should be fixed by now (commit f16a15d), forgot to reference the issue in the commit message.

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

No branches or pull requests

1 participant