mirror of
https://github.com/eaglerforge/EaglerForgeInjector
synced 2025-07-23 06:01:38 -09:00
AsyncSink bugfix and textured model example
This commit is contained in:
parent
71f69fe2a0
commit
4f5b7abfe5
@ -194,9 +194,12 @@ ModAPI.meta.credits("By ZXMushroom63");
|
||||
name: "AsyncSinkLib",
|
||||
timestamp: Date.now()
|
||||
};
|
||||
if (!Array.isArray(resourcePackList.resourcePacks)) {
|
||||
resourcePackList.resourcePacks = [];
|
||||
}
|
||||
if (resourcePackList.resourcePacks.find(x => x.name === "AsyncSinkLib")) {
|
||||
var idx = resourcePackList.resourcePacks.indexOf(resourcePackList.resourcePacks.find(x => x.name === "AsyncSinkLib"));
|
||||
resourcePackList.resourcePacks = pack;
|
||||
resourcePackList.resourcePacks[idx] = pack;
|
||||
} else {
|
||||
resourcePackList.resourcePacks.push(pack);
|
||||
}
|
||||
@ -240,7 +243,7 @@ ModAPI.meta.credits("By ZXMushroom63");
|
||||
var resourcePackEntries = ModAPI.mc.mcResourcePackRepository.getRepositoryEntries().getCorrective();
|
||||
var array = resourcePackEntries.array || [resourcePackEntries.element];
|
||||
asyncSinkInstallStatus = array.find(x => ModAPI.util.ustr(x.reResourcePack.resourcePackFile.getRef()) === "AsyncSinkLib") ? true : false;
|
||||
assureAsyncSinkResources();
|
||||
//assureAsyncSinkResources();
|
||||
if (asyncSinkInstallStatus) {
|
||||
installMessage.style.display = "none";
|
||||
} else {
|
||||
|
38
examplemods/arbitrary_model.js
Normal file
38
examplemods/arbitrary_model.js
Normal file
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user