diff --git a/server/src/events/inventory_manip.rs b/server/src/events/inventory_manip.rs index 39c81fb490..1aa60ff15f 100644 --- a/server/src/events/inventory_manip.rs +++ b/server/src/events/inventory_manip.rs @@ -612,9 +612,11 @@ pub fn handle_inventory(server: &mut Server, entity: EcsEntity, manip: comp::Inv } }, } - - // Drop items - for (pos, ori, item) in dropped_items { + // Drop items, Debug items should simply disappear when dropped + for (pos, ori, item) in dropped_items + .into_iter() + .filter(|(_, _, i)| !matches!(i.quality(), item::Quality::Debug)) + { // hack: special case coins for now let body = match item.item_definition_id() { "common.items.utility.coins" => comp::object::Body::Coins,