mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
No longer send collect inventory event if interactable sprite kind cannot be found.
This commit is contained in:
@ -695,7 +695,7 @@ pub fn handle_manipulate_loadout(
|
|||||||
.copied()
|
.copied()
|
||||||
.and_then(|b| b.get_sprite());
|
.and_then(|b| b.get_sprite());
|
||||||
|
|
||||||
// Checks if position has a collectible sprite as wella s what sprite is at the
|
// Checks if position has a collectible sprite as well as what sprite is at the
|
||||||
// position
|
// position
|
||||||
let sprite_interact = sprite_at_pos.and_then(Option::<SpriteInteractKind>::from);
|
let sprite_interact = sprite_at_pos.and_then(Option::<SpriteInteractKind>::from);
|
||||||
|
|
||||||
@ -719,11 +719,6 @@ pub fn handle_manipulate_loadout(
|
|||||||
timer: Duration::default(),
|
timer: Duration::default(),
|
||||||
stage_section: StageSection::Buildup,
|
stage_section: StageSection::Buildup,
|
||||||
})
|
})
|
||||||
} else {
|
|
||||||
// Otherwise send server event immediately
|
|
||||||
update
|
|
||||||
.server_events
|
|
||||||
.push_front(ServerEvent::InventoryManip(data.entity, inv_action.into()));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user