mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Upgrade old coordinate parsing.
This commit is contained in:
parent
e01eab28a2
commit
cfdc035617
4 changed files with 9 additions and 18 deletions
|
|
@ -51,12 +51,9 @@ namespace MinecraftClient.Commands
|
|||
{
|
||||
try
|
||||
{
|
||||
int x = int.Parse(args[0]);
|
||||
int y = int.Parse(args[1]);
|
||||
int z = int.Parse(args[2]);
|
||||
|
||||
Location block = new Location(x, y, z);
|
||||
handler.UpdateLocation(handler.GetCurrentLocation(), block);
|
||||
Location current = handler.GetCurrentLocation();
|
||||
Location block = Location.Parse(current, args[0], args[1], args[2]);
|
||||
handler.UpdateLocation(current, block);
|
||||
|
||||
return Translations.Get("cmd.look.block", block);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue