Fix bug in tpto

This commit is contained in:
fullwall 2019-11-28 16:14:29 +08:00
parent 6c4682b7a1
commit 798c82536c

View File

@ -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) {