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:
parent
c66e1b3a56
commit
2a3cc3d35a
@ -695,7 +695,7 @@ pub fn handle_manipulate_loadout(
|
||||
.copied()
|
||||
.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
|
||||
let sprite_interact = sprite_at_pos.and_then(Option::<SpriteInteractKind>::from);
|
||||
|
||||
@ -719,11 +719,6 @@ pub fn handle_manipulate_loadout(
|
||||
timer: Duration::default(),
|
||||
stage_section: StageSection::Buildup,
|
||||
})
|
||||
} else {
|
||||
// Otherwise send server event immediately
|
||||
update
|
||||
.server_events
|
||||
.push_front(ServerEvent::InventoryManip(data.entity, inv_action.into()));
|
||||
}
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user