mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Fix rebase
This commit is contained in:
@ -839,12 +839,7 @@ impl Item {
|
|||||||
self.slots.iter_mut().filter_map(mem::take)
|
self.slots.iter_mut().filter_map(mem::take)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn item_definition_id(&self) -> &str {
|
pub fn item_definition_id(&self) -> &str { self.item_base.item_definition_id() }
|
||||||
match &self.item_base {
|
|
||||||
ItemBase::Raw(item_def) => &item_def.item_definition_id,
|
|
||||||
ItemBase::Modular(mod_base) => mod_base.pseudo_item_id(),
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn is_same_item_def(&self, item_def: &ItemDef) -> bool {
|
pub fn is_same_item_def(&self, item_def: &ItemDef) -> bool {
|
||||||
if let ItemBase::Raw(self_def) = &self.item_base {
|
if let ItemBase::Raw(self_def) = &self.item_base {
|
||||||
|
Reference in New Issue
Block a user