mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
fix issue #1059: Debug items should disappear when dropped
This commit is contained in:
parent
90aa671e42
commit
4c5de60d0d
@ -607,9 +607,11 @@ pub fn handle_inventory(server: &mut Server, entity: EcsEntity, manip: comp::Inv
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
// Drop items, Debug items should simply disappear when dropped
|
||||||
// Drop items
|
for (pos, ori, item) in dropped_items
|
||||||
for (pos, ori, item) in dropped_items {
|
.into_iter()
|
||||||
|
.filter(|(_, _, i)| !matches!(i.quality(), item::Quality::Debug))
|
||||||
|
{
|
||||||
// hack: special case coins for now
|
// hack: special case coins for now
|
||||||
let body = match item.item_definition_id() {
|
let body = match item.item_definition_id() {
|
||||||
"common.items.utility.coins" => comp::object::Body::Coins,
|
"common.items.utility.coins" => comp::object::Body::Coins,
|
||||||
|
Loading…
Reference in New Issue
Block a user