remove ambiguity in call to teleportTo()

This commit is contained in:
walterhiggins 2015-05-17 15:07:33 +01:00
parent e6be40c5c8
commit 6224845e8b

View file

@ -52,7 +52,8 @@ function teleport( entity, destination){
entity.teleport( destination, bkTeleportCause.PLUGIN); entity.teleport( destination, bkTeleportCause.PLUGIN);
} }
if (__plugin.canary){ if (__plugin.canary){
entity.teleportTo(destination); var cmTeleportCause = Packages.net.canarymod.hook.player.TeleportHook.TeleportCause;
entity.teleportTo(destination, cmTeleportCause.PLUGIN);
} }
} }
module.exports = teleport; module.exports = teleport;