remove ambiguity in call to teleportTo()

This commit is contained in:
walterhiggins 2015-05-17 15:07:33 +01:00
parent e6be40c5c8
commit 6224845e8b
1 changed files with 2 additions and 1 deletions

View File

@ -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;