Merge branch 'ubruntu/system-independent-itempaths' into 'master'

Ubruntu/system independent itempaths

See merge request veloren/veloren!1538
This commit is contained in:
Imbris 2020-11-21 04:08:12 +00:00
commit 2e94a63246

View File

@ -126,7 +126,7 @@ fn handle_give_item(
scan_fmt_some!(&args, &action.arg_fmt(), String, u32)
{
let give_amount = give_amount_opt.unwrap_or(1);
if let Ok(item) = Item::new_from_asset(&item_name) {
if let Ok(item) = Item::new_from_asset(&item_name.replace('/', ".").replace("\\", ".")) {
let mut item: Item = item;
if let Ok(()) = item.set_amount(give_amount.min(2000)) {
server