remove ambiguity in call to teleportTo()
This commit is contained in:
parent
e6be40c5c8
commit
6224845e8b
1 changed files with 2 additions and 1 deletions
|
@ -52,7 +52,8 @@ function teleport( entity, destination){
|
|||
entity.teleport( destination, bkTeleportCause.PLUGIN);
|
||||
}
|
||||
if (__plugin.canary){
|
||||
entity.teleportTo(destination);
|
||||
var cmTeleportCause = Packages.net.canarymod.hook.player.TeleportHook.TeleportCause;
|
||||
entity.teleportTo(destination, cmTeleportCause.PLUGIN);
|
||||
}
|
||||
}
|
||||
module.exports = teleport;
|
||||
|
|
Reference in a new issue