mirror of
https://github.com/eaglerforge/EaglerForgeInjector
synced 2025-07-23 06:01:38 -09:00
fix typoes
This commit is contained in:
parent
60d77cf04a
commit
33e829f633
@ -99,7 +99,7 @@ The ModAPI object has the following methods:
|
||||
- Gets the frames per second of the game
|
||||
- `promisify(asyncJavaMethod: Method | Constructor) : PromisifiedJavaRunner`
|
||||
- Allows running java methods that are @Async/@Async dependent.
|
||||
- More [PromisifyDocumentation](promisify.md)
|
||||
- More: [PromisifyDocumentation](promisify.md)
|
||||
- `addCredit(category: String, contributor: String, contents: String)`
|
||||
- Lets you easily add credits to Eaglercraft's credits.txt
|
||||
- eg: `ModAPI.addCredit("My Cool Mod", "Username", " - Coded the mod\n - Wrote somne credits")`
|
||||
|
@ -31,7 +31,7 @@ var asyncDownloadRemoteURI = ModAPI.promisify(ModAPI.hooks.methods.nlevi_Platfor
|
||||
console.log(typeof asyncDownloadRemoteURI); //Logs function
|
||||
```
|
||||
|
||||
When it is called, like any other asyncronoush function, it returns a `Promise` object.
|
||||
When it is called, like any other asyncronous function, it returns a `Promise` object.
|
||||
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise
|
||||
|
||||
You can replace the argument with any other method or constructor, including non asynchronous ones.
|
Loading…
x
Reference in New Issue
Block a user