Merge pull request #98 from eaglerforge/main

v2.7.8
This commit is contained in:
ZXMushroom63 2025-05-02 19:50:17 +08:00 committed by GitHub
commit adc9106a96
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 16 additions and 4 deletions

14
LICENSE
View File

@ -9,7 +9,19 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
1. Non-Commercial Use Only
The Software and any Derivative Works may not be sold, licensed, or otherwise used for commercial purposes. This includes, but is not limited to, charging money for access, selling within an app or game, and monetizing through advertising or tracking.
2. No Advertising or Tracking
The Software and any Derivative Works must not contain any form of advertising, user tracking, or data collection for monetization purposes.
3. No Misleading Representation
You may not misrepresent the origin of the Software or Derivative Works. You must not imply that your use or distribution is endorsed by the original author(s) unless you have explicit written permission.
4. Attribution Required
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software and any Derivative Works.
5. The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR

View File

@ -14,7 +14,7 @@ var modapi_preinit = `globalThis.ModAPI ||= {};
`;
var freezeCallstack = `if(ModAPI.hooks.freezeCallstack){return false};`;
const EFIConfig = {
ModAPIVersion: "v2.7.7", //also change in package.json
ModAPIVersion: "v2.7.8", //also change in package.json
doEaglerforge: true,
verbose: false,
doServerExtras: false,
@ -383,7 +383,6 @@ var main;(function(){`
patchedFile = patchedFile.replace(
` id="game_frame">`,
` id="game_frame">
\<script id="1_12_corelib_flag"\>ModAPI.is_1_12 = ${patchedFile.includes("nleit_MainClass_main")}\<\/script\>
\<script id="modapi_patchesreg_events"\>${assets.PatchesRegistry.getEventInjectorCode()};\<\/script\>
\<script id="modapi_postinit"\>${assets.modapi_postinit.replace("__modapi_version_code__", EFIConfig.ModAPIVersion)}\<\/script\>
\<script id="modapi_modloader"\>${assets.modapi_modloader}\<\/script\>

View File

@ -16,6 +16,7 @@ const modapi_postinit = "(" + (() => {
}
ModAPI.hooks._classMap = {};
ModAPI.is_1_12 = !!ModAPI.hooks.methods.nleit_MainClass_main;
globalThis.PluginAPI ||= ModAPI;
ModAPI.mcinstance ||= {};
ModAPI.javaClient ||= {};

View File

@ -1,6 +1,6 @@
{
"name": "eaglerforgeinjector",
"version": "2.7.7",
"version": "2.7.8",
"description": "Advanced modding API injector for unminified, unobfuscated, unsigned eaglercraft builds.",
"main": "node.js",
"directories": {