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: retrieve character entity within binding #46

Merged
merged 1 commit into from
Aug 8, 2021

Conversation

skaldarnar
Copy link
Contributor

In #45 the character entity was cached outside of the binding evaluation. However, it in multiplayer games it can happen that it is
null, and therefore opening container screens on a connected client fails.

This is fixed by retrieving the character entity with each binding evaluation via a common helper method getPredictedInteractionTarget.

In #45 the character entity was cached outside of the binding
evaluation. However, it in multiplayer games it can happen that it is
`null`, and therefore opening container screens on a connected client
fails.

This is fixed by retrieving the character entity with each binding
evaluation via a common helper method `getPredictedInteractionTarget`.
@skaldarnar skaldarnar added Multiplayer Affects aspects not visible in Singleplayer mode only Type: Bug Issues reporting and PRs fixing problems labels Aug 8, 2021
@jdrueckert jdrueckert merged commit 37e15ae into develop Aug 8, 2021
@jdrueckert jdrueckert deleted the fix/container-screen-init-in-multiplayer branch August 8, 2021 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Multiplayer Affects aspects not visible in Singleplayer mode only Type: Bug Issues reporting and PRs fixing problems
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants