From 798c82536c58fb7f3e8e2e353fac9e4802f46ac6 Mon Sep 17 00:00:00 2001 From: fullwall Date: Thu, 28 Nov 2019 16:14:29 +0800 Subject: [PATCH] Fix bug in tpto --- main/src/main/java/net/citizensnpcs/commands/NPCCommands.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/src/main/java/net/citizensnpcs/commands/NPCCommands.java b/main/src/main/java/net/citizensnpcs/commands/NPCCommands.java index f7ed20334..5c454e653 100644 --- a/main/src/main/java/net/citizensnpcs/commands/NPCCommands.java +++ b/main/src/main/java/net/citizensnpcs/commands/NPCCommands.java @@ -1997,9 +1997,9 @@ public class NPCCommands { NPC fromNPC = CitizensAPI.getNPCRegistry().getById(id); if (fromNPC != null) { if (args.argsLength() == 2) { - from = fromNPC.getEntity(); - } else { to = fromNPC.getEntity(); + } else { + from = fromNPC.getEntity(); } } } catch (NumberFormatException e) {