jei_hides: Rhino-compatible (no array spread) #26

Merged
Matt merged 1 commits from fix/jei-hides-rhino-spread into main 2026-05-23 16:18:51 +00:00
Owner

Drops [...] array spread syntax for .concat. Pack 0.21.0 -> 0.21.1.

Drops [...] array spread syntax for .concat. Pack 0.21.0 -> 0.21.1.
Matt added 1 commit 2026-05-23 16:18:51 +00:00
KubeJS uses Rhino as its JS engine, which doesn't support array-spread
syntax (`[...a, ...b]`). The line `[...WAYSTONE_ITEMS, ...COIN_ITEMS]
.forEach(...)` threw EvaluatorException: syntax error at jei_hides.js:46
on client launch, surfacing the KubeJS client script errors dialog.

Fix: use Array.prototype.concat() which is universal JS. Also extracted
the hide-quietly helper into a named function for readability.
Matt merged commit 28a02d0ced into main 2026-05-23 16:18:51 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: minecraft/brass-and-sigil#26