mirror of
https://github.com/eaglerforge/EaglerForgeInjector
synced 2025-07-23 14:11:16 -09:00
Fix metamap generation
This commit is contained in:
parent
a89ae85c78
commit
2413e901a2
@ -216,6 +216,10 @@ globalThis.modapi_postinit = "(" + (() => {
|
|||||||
block.forEach(item => {
|
block.forEach(item => {
|
||||||
if (typeof item === "function") {
|
if (typeof item === "function") {
|
||||||
if (!item.$meta || typeof item.$meta.name !== "string") {
|
if (!item.$meta || typeof item.$meta.name !== "string") {
|
||||||
|
if (item.name && item.name.split("_").length === 2) {
|
||||||
|
metaMap[item.name] = item;
|
||||||
|
compiledNames.add(item.name);
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var compiledName = ModAPI.util.getCompiledNameFromPackage(item.$meta.name);
|
var compiledName = ModAPI.util.getCompiledNameFromPackage(item.$meta.name);
|
||||||
@ -224,6 +228,7 @@ globalThis.modapi_postinit = "(" + (() => {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
ModAPI.hooks._rippedConstructorKeys.forEach(constructor => {
|
ModAPI.hooks._rippedConstructorKeys.forEach(constructor => {
|
||||||
if (typeof constructor === "string" && constructor.length > 0) {
|
if (typeof constructor === "string" && constructor.length > 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user