mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Merge branch 'juliancoffee/fix_dropall' into 'master'
Don't drop Debug item with /dropall Closes #1059 See merge request veloren/veloren!2236
This commit is contained in:
commit
d1210ade4a
@ -16,7 +16,7 @@ use common::{
|
||||
self,
|
||||
aura::{Aura, AuraKind, AuraTarget},
|
||||
buff::{Buff, BuffCategory, BuffData, BuffKind, BuffSource},
|
||||
inventory::item::{tool::AbilityMap, MaterialStatManifest},
|
||||
inventory::item::{tool::AbilityMap, MaterialStatManifest, Quality},
|
||||
invite::InviteKind,
|
||||
ChatType, Inventory, Item, LightEmitter, WaypointArea,
|
||||
},
|
||||
@ -284,7 +284,10 @@ fn handle_drop_all(
|
||||
|
||||
let mut rng = rand::thread_rng();
|
||||
|
||||
for item in items {
|
||||
let item_to_place = items
|
||||
.into_iter()
|
||||
.filter(|i| !matches!(i.quality(), Quality::Debug));
|
||||
for item in item_to_place {
|
||||
let vel = Vec3::new(rng.gen_range(-0.1..0.1), rng.gen_range(-0.1..0.1), 0.5);
|
||||
|
||||
server
|
||||
|
Loading…
Reference in New Issue
Block a user