mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Remove ComponentKey TODO in Inventory::get_slot_of_item since item_definition_id contains component IDs!
This commit is contained in:
parent
349d1726a6
commit
93eab4791d
@ -400,11 +400,6 @@ impl Inventory {
|
||||
self.slots_with_id()
|
||||
.find(|&(_, it)| {
|
||||
if let Some(it) = it {
|
||||
if it.components().len() == item.components().len() {
|
||||
// TODO: add a ComponentKey struct to compare components, see issue #1226
|
||||
debug_assert!(it.components().is_empty());
|
||||
debug_assert!(item.components().is_empty());
|
||||
}
|
||||
it.item_definition_id() == item.item_definition_id()
|
||||
} else {
|
||||
false
|
||||
|
Loading…
Reference in New Issue
Block a user