Merge branch 'swilliams/give_item_fix' into 'master'

Fix for Issue 1210

See merge request veloren/veloren!2484
This commit is contained in:
Marcel 2021-06-20 23:26:59 +00:00
commit ec7d3b5e37

View File

@ -239,7 +239,7 @@ lazy_static! {
if path.is_dir(){
list_items(&path, &base, &mut items)?;
} else if let Ok(path) = path.strip_prefix(base) {
let path = path.to_string_lossy().trim_end_matches(".ron").replace('/', ".");
let path = path.to_string_lossy().trim_end_matches(".ron").replace('/', ".").replace('\\', ".");
items.push(path);
}
}