Command Targeting overhaul fixes

This commit is contained in:
AnimeGitB
2022-05-05 14:33:08 +09:30
committed by Melledy
Unverified
parent d8b2e787e5
commit 37c2ee5e2c
13 changed files with 78 additions and 54 deletions
@@ -46,8 +46,8 @@ public final class TeleportCommand implements CommandHandler {
case 3:
try {
x = parseRelative(args.get(0), x);
y = parseRelative(args.get(0), y);
z = parseRelative(args.get(0), z);
y = parseRelative(args.get(1), y);
z = parseRelative(args.get(2), z);
} catch (NumberFormatException ignored) {
CommandHandler.sendMessage(sender, Grasscutter.getLanguage().Teleport_invalid_position);
}