mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-26 12:46:04 +01:00
Fix bug in tpto
This commit is contained in:
parent
6c4682b7a1
commit
798c82536c
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user