mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Fix xxx.Parse
This commit is contained in:
parent
ccb4ce51cc
commit
53898f3446
21 changed files with 71 additions and 44 deletions
|
|
@ -1,5 +1,6 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using MinecraftClient.Mapping;
|
||||
|
|
@ -30,7 +31,7 @@ namespace MinecraftClient.Commands
|
|||
{
|
||||
if (args.Length == 2)
|
||||
{
|
||||
if (!int.TryParse(args[1], out int radius))
|
||||
if (!int.TryParse(args[1], NumberStyles.Any, CultureInfo.CurrentCulture, out int radius))
|
||||
return CmdUsage;
|
||||
|
||||
handler.GetLogger().Info(Translations.TryGet("cmd.bed.searching", radius));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue