From 6224845e8b69c3ccbda707026a205371ceb7092c Mon Sep 17 00:00:00 2001 From: walterhiggins Date: Sun, 17 May 2015 15:07:33 +0100 Subject: [PATCH] remove ambiguity in call to teleportTo() --- src/main/js/modules/teleport.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/js/modules/teleport.js b/src/main/js/modules/teleport.js index 9e7121c..f98524d 100644 --- a/src/main/js/modules/teleport.js +++ b/src/main/js/modules/teleport.js @@ -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;