Skip to content

Commit 9648898

Browse files
committed
fix: treat optional modules as optional
1 parent 9e95008 commit 9648898

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

changelog.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# UnderScript Changelog
22

3-
## Version 0.63.13 (2026-01-06)
4-
Apparently UnderScript updates were broken and the past 2 releases didn't go through. Here's the changes:
3+
## Version 0.63.14 (2026-01-06)
4+
Apparently UnderScript updates were broken and the past few releases didn't go through. Here's the changes:
55
1. Fixed filters not resetting to first page
66
1. Fixed battle log not translating story username
77
1. Fixed chat ping highlight conflicting with base game

src/utils/plugin.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,14 @@ function load({ name, mod, dependencies = [], runs = 0 }, methods, local) {
1414
}
1515
const required = dependencies.filter((module) => methods[module.replace('?', '')] === undefined);
1616
if (required.length) {
17-
if (runs < 5) local.push({ name, mod, dependencies: required, runs: runs + 1 });
18-
return;
17+
if (runs < 5) {
18+
local.push({ name, mod, dependencies: required, runs: runs + 1 });
19+
return;
20+
}
21+
if (dependencies.some((module) => !module.endsWith('?'))) {
22+
return;
23+
}
24+
// Remaining are optional
1925
}
2026
try {
2127
const val = mod(methods);

0 commit comments

Comments
 (0)