styles and vbox sort
This commit is contained in:
@@ -118,7 +118,10 @@ pub fn player_create(tx: &mut Transaction, player: Player, account: &Account) ->
|
||||
return Ok(player);
|
||||
}
|
||||
|
||||
pub fn player_update(tx: &mut Transaction, player: Player, ignore_phase: bool) -> Result<Player, Error> {
|
||||
pub fn player_update(tx: &mut Transaction, mut player: Player, ignore_phase: bool) -> Result<Player, Error> {
|
||||
// sort vbox for niceness
|
||||
player.vbox.bound.sort_unstable();
|
||||
|
||||
// update the instance this player is associated with
|
||||
// if not a global player
|
||||
if player.instance != Uuid::nil() {
|
||||
|
||||
Reference in New Issue
Block a user