mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Merge branch 'ubruntu/system-independent-itempaths' into 'master'
Ubruntu/system independent itempaths See merge request veloren/veloren!1538
This commit is contained in:
commit
2e94a63246
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user