Changed incorrect receiving entity to character entity in onAwaitedLocalCharacterSpawnEvent in VisualCharacterSystem
@@ -115,7 +115,7 @@ private EntityRef createAndAttachVisualEntity(EntityBuilder entityBuilder, Entit
public void onAwaitedLocalCharacterSpawnEvent(AwaitedLocalCharacterSpawnEvent event, EntityRef entity) {
awaitedLocalCharacterSpawn = true;
for (EntityRef character: entityManager.getEntitiesWith(VisualCharacterComponent.class)) {
- createVisualCharacterIfNotOwnCharacter(character, entity.getComponent(VisualCharacterComponent.class));
+ createVisualCharacterIfNotOwnCharacter(character, character.getComponent(VisualCharacterComponent.class));
}
}
@@ -128,7 +128,6 @@ public void onCreateDefaultVisualCharacter(CreateVisualCharacterEvent event, Ent
event.consume();
}
-
/**
* For tests only
*/
