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