From c3bf42d3671cbdc3045efb40662fdf519f06e5fb Mon Sep 17 00:00:00 2001 From: jake Date: Wed, 2 Sep 2020 22:31:33 -0600 Subject: [PATCH] set mag owner on character create --- src/login/character.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/login/character.rs b/src/login/character.rs index 91b38b8..997e46d 100644 --- a/src/login/character.rs +++ b/src/login/character.rs @@ -224,9 +224,11 @@ async fn new_character(entity_gateway: &mut EG, user: &UserAc equipped: true, }}).await; + let mut mag = Mag::baby_mag(character.appearance.skin); + mag.change_owner(character.char_class, character.section_id); entity_gateway.create_item( NewItemEntity { - item: ItemDetail::Mag(Mag::baby_mag(character.appearance.skin)), + item: ItemDetail::Mag(mag), location: ItemLocation::Inventory { character_id: character.id, slot: 2,