Skip to content

Commit

Permalink
Fix InputSystem#inputEntities sync with localPlayer's entities.
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkWeird committed Dec 4, 2019
1 parent b8e0661 commit 70ac0dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engine/src/main/java/org/terasology/input/InputSystem.java
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@ private void updateInputEntities() {
|| inputEntities.length != 2
|| inputEntities[0] == null
|| inputEntities[1] == null
|| !inputEntities[0].equals(localPlayer.getClientEntity())
|| !inputEntities[1].equals(localPlayer.getCharacterEntity())) {
|| inputEntities[0] != localPlayer.getClientEntity()
|| inputEntities[1] != localPlayer.getCharacterEntity()) {
inputEntities = new EntityRef[]{localPlayer.getClientEntity(), localPlayer.getCharacterEntity()};
}
}
Expand Down

0 comments on commit 70ac0dc

Please sign in to comment.