Merge pull request #66 from eaglerforge/main

fix typoes
This commit is contained in:
ZXMushroom63 2025-03-15 19:42:44 +08:00 committed by GitHub
commit fa2b879e81
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -99,7 +99,7 @@ The ModAPI object has the following methods:
- Gets the frames per second of the game - Gets the frames per second of the game
- `promisify(asyncJavaMethod: Method | Constructor) : PromisifiedJavaRunner` - `promisify(asyncJavaMethod: Method | Constructor) : PromisifiedJavaRunner`
- Allows running java methods that are @Async/@Async dependent. - Allows running java methods that are @Async/@Async dependent.
- More [PromisifyDocumentation](promisify.md) - More: [PromisifyDocumentation](promisify.md)
- `addCredit(category: String, contributor: String, contents: String)` - `addCredit(category: String, contributor: String, contents: String)`
- Lets you easily add credits to Eaglercraft's credits.txt - Lets you easily add credits to Eaglercraft's credits.txt
- eg: `ModAPI.addCredit("My Cool Mod", "Username", " - Coded the mod\n - Wrote somne credits")` - eg: `ModAPI.addCredit("My Cool Mod", "Username", " - Coded the mod\n - Wrote somne credits")`

View File

@ -31,7 +31,7 @@ var asyncDownloadRemoteURI = ModAPI.promisify(ModAPI.hooks.methods.nlevi_Platfor
console.log(typeof asyncDownloadRemoteURI); //Logs function 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 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. You can replace the argument with any other method or constructor, including non asynchronous ones.