-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: retrieve character entity within binding (#46)
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`.
- Loading branch information
1 parent
5e8a0e5
commit 37e15ae
Showing
1 changed file
with
12 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters